Stop/Close Notification

Moderator: admin

Stop/Close Notification

Postby lostinfx » Tue Jul 10, 2012 6:26 am

Hi,

One part of the strategy I am writing requires to know if a trade has been stopped out or Limited. How would I know that?

thanks.
lostinfx
 
Posts: 4
Joined: Tue Jul 10, 2012 6:20 am

Re: Stop/Close Notification

Postby sunshine » Tue Jul 10, 2012 6:39 am

Please look at the code of the standard Marketscope strategy 'watch_trade.lua'. It can be found in
C:\Program Files\Candleworks\FXTS2\Strategies\Standard

The idea is to check if the trade with the specified ID appears in the Closed Trades table in the Update function.
sunshine
 

Re: Stop/Close Notification

Postby lostinfx » Tue Jul 10, 2012 8:15 am

Thank you very much.
lostinfx
 
Posts: 4
Joined: Tue Jul 10, 2012 6:20 am


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 85 guests