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 2,244 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread
  #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?
Orban Crashes to 21pct on Record Turnout -- McIlroy Drop …
Prediction Markets & Event Contracts
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
Topstep Slashes XFA Payout Caps by Up to 60% -- Flagship …
Funded Trading Evaluation Firms
400 Million Barrels to Address Middle East Supply Disruption
Commodities
February Derivatives Boom -- Every Futures Asset Class S …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 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 X 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,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

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 X 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,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

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

Regards,
ABCTG


Follow me on X Reply With Quote




Last Updated on April 4, 2014


© 2026 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 - Downloads - Top
no new posts