GetRTAccountEquity Problem - MultiCharts | futures io social day trading

GetRTAccountEquity Problem
 Updated: April 4th, 2014 (02:09 PM) Views / Replies: 610 / 7 Created: April 4th, 2014 (07: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, 09: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, 11: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, 12:18 PM #6 (permalink) Market Wizard Hamburg Germany   Futures Experience: Advanced Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader Broker/Data: DTN IQ Favorite Futures: ES   Posts: 1,533 since Apr 2013 Thanks: 231 given, 855 received Forum Reputation: Legendary 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, 01: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, 02:09 PM #8 (permalink) Market Wizard Hamburg Germany   Futures Experience: Advanced Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader Broker/Data: DTN IQ Favorite Futures: ES   Posts: 1,533 since Apr 2013 Thanks: 231 given, 855 received Forum Reputation: Legendary 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)

Elite only

Elite only

Jan 18

Jan 23

Elite only

Elite only

## Ran Aroussi: TBA

Elite only

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

All times are GMT -4. The time now is 02:25 AM.

 Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io 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.
no new posts
Page generated 2017-12-17 in 0.10 seconds with 19 queries on phoenix via your IP 54.82.56.95