NexusFi: Find Your Edge


Home Menu

 





GetRTAccountEquity Problem


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one no erocla with 4 posts (0 thanks)
    2. looks_two ABCTG with 2 posts (0 thanks)
    3. looks_3 Jura with 1 posts (0 thanks)
    4. looks_4 OptimusJohn with 1 posts (2 thanks)
    1. trending_up 1,405 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

GetRTAccountEquity Problem

  #1 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Hello guys, anyone can help me ?

this code:

 
Code
                            
varslot(0),STOPLOSS(0),TAKEPROFIT(0),up(0),dw(0),equity(0);

inputperiod(20),dev(2);

equity GetRTAccountEquity(GetAccountID);
    

if 
LastBarOnChart then begin
    Value1 
Text_New_s(DateTime_sHigh MinMove/PriceScaleNumToStr(equity 0));
    
Text_SetColor(Value1Yellow);
end;

lot 100000;

up BollingerBand(h,period,dev);
dw BollingerBand(l,period,-dev);
        
   if (  
up then
   BUY 
"LONG"lot SHARE NEXT BAR AT open;
    
   if (  
dw then 
   SELLSHORT 
("SHORT"lot SHARE NEXT BAR AT OPEN;
            
SetStopLoss(200);
SetProfitTarget(200); 
Assume equity = 0, why ? Im on paper trading account.

The strage thing, is that this formula works on 1 of my old saved workspace, but if i make a new workspace/chart it stops to work.

Seems really to have a random behaviour...


Thank you, like alwais, for any answer
No Erocla

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
Build trailing stop for micro index(s)
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
43 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


no erocla View Post
Hello guys, anyone can help me ?

this code:

(...)

The strage thing, is that this formula works on 1 of my old saved workspace, but if i make a new workspace/chart it stops to work.

I thought the value returned by GetRTAccountEquity is dependent on your selected broker plugin (rightclick chart -> Format Signals -> Properties -> tab Autotrading -> Select Broker plugin in the bottom of that screen).

That would explain why it works in one workspace and not in another.

Reply With Quote
  #3 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4


Unfortunatelly is the same, so there's another problem.

Now all of my charts doesnt work... (idk why)

Thank you anyway
No Erocla

Reply With Quote
  #4 (permalink)
 OptimusJohn 
Boca Raton, FL
 
Experience: Advanced
Platform: NinjaTrader
Broker: Optimus Futures / Rithmic
Trading: Futures
Posts: 27 since May 2013
Thanks Given: 34
Thanks Received: 38


no erocla View Post
Unfortunatelly is the same, so there's another problem.

Now all of my charts doesnt work... (idk why)

Thank you anyway
No Erocla

I'm under the impression that for GetRTAccountEquity to work, that 'Automate Order Execution' must be enabled (SA Drop-down). This might be worth a shot.

Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Yes true,

but i've some other charts where my function works correctly, it's really a random behaviour.
The important is that it works correctly on live Trading.

No Erocla

Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

no erocla,

are all charts connected to the same broker - especially the one where it seems to work and the ones where it doesn't?

Regards,
ABCTG

Follow me on Twitter Reply With Quote
  #7 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Hello ABCTG, nice to see you.

Yes, my autotrading works correctly

Reply With Quote
  #8 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

So all charts are connected to the same broker or are you using more than one?

Regards,
ABCTG

Follow me on Twitter Reply With Quote




Last Updated on April 4, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts