GetRTAccountEquity Problem - MultiCharts | futures io social day trading

GetRTAccountEquity Problem
 Updated: April 4th, 2014 (01:09 PM) Views / Replies: 697 / 7 Created: April 4th, 2014 (06:33 AM) by no erocla Attachments: 0

 Welcome to futures io.

# GetRTAccountEquity Problem

turin italy

Favorite Futures: futures

Posts: 96 since May 2013

GetRTAccountEquity Problem

Hello guys, anyone can help me ?

this code:

Code
 ``` ``` vars: lot(0),STOPLOSS(0),TAKEPROFIT(0),up(0),dw(0),equity(0); input: period(20),dev(2); equity = GetRTAccountEquity(GetAccountID);      if LastBarOnChart then begin     Value1 = Text_New_s(Date, Time_s, High + 6 * MinMove/PriceScale, NumToStr(equity , 0));     Text_SetColor(Value1, Yellow); end; lot = 100000; up = BollingerBand(h,period,dev); dw = BollingerBand(l,period,-dev);             if (  c > up ) then    BUY ( "LONG") lot SHARE NEXT BAR AT open;         if (  c < 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

The Netherlands

Futures Experience: None
Favorite Futures: ...

Posts: 774 since Apr 2010

no erocla
 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.

 April 4th, 2014, 08:19 AM #3 (permalink) Trading for Fun turin italy   Futures Experience: Advanced Platform: metatrader multichart Favorite Futures: futures   Posts: 96 since May 2013 Thanks: 43 given, 4 received Unfortunatelly is the same, so there's another problem. Now all of my charts doesnt work... (idk why) Thank you anyway No Erocla

Vendor: www.optimusfutures.com
Boca Raton, FL

Broker/Data: Optimus Futures / Rithmic
Favorite Futures: Futures

Posts: 27 since May 2013

no erocla
 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.

 The following 2 users say Thank You to OptimusJohn for this post:

 April 4th, 2014, 10:59 AM #5 (permalink) Trading for Fun turin italy   Futures Experience: Advanced Platform: metatrader multichart Favorite Futures: futures   Posts: 96 since May 2013 Thanks: 43 given, 4 received 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

 April 4th, 2014, 11:18 AM #6 (permalink) Vendor: www.abctradinggroup.com  Hamburg Germany   Futures Experience: Advanced Platform: Multicharts, Tradestation Broker/Data: DTN IQ Favorite Futures: ES   Posts: 1,798 since Apr 2013 Thanks: 287 given, 1,085 received 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

 April 4th, 2014, 12:27 PM #7 (permalink) Trading for Fun turin italy   Futures Experience: Advanced Platform: metatrader multichart Favorite Futures: futures   Posts: 96 since May 2013 Thanks: 43 given, 4 received Hello ABCTG, nice to see you. Yes, my autotrading works correctly

 April 4th, 2014, 01:09 PM #8 (permalink) Vendor: www.abctradinggroup.com  Hamburg Germany   Futures Experience: Advanced Platform: Multicharts, Tradestation Broker/Data: DTN IQ Favorite Futures: ES   Posts: 1,798 since Apr 2013 Thanks: 287 given, 1,085 received So all charts are connected to the same broker or are you using more than one? Regards, ABCTG

 futures io > GetRTAccountEquity Problem

Upcoming Webinars and Events (4:30PM ET unless noted)

September

October

Oct 11

## Finding Your Edge & Maximizing Returns w/Richard L Weissman

Oct 16

 Similar Threads Thread Thread Starter Forum Replies Last Post jordis ThinkOrSwim 3 August 27th, 2013 03:58 PM lookOutBelow NinjaTrader 7 February 20th, 2013 01:27 PM grego NinjaTrader 3 February 9th, 2011 12:28 AM websouth Off-Topic 11 February 1st, 2010 01:04 PM lolu Feedback and Announcements 2 December 14th, 2009 07:30 AM