Conditionally closing a pending entry order

Section for discussions related to indicators, use of indicators, and building of trading stategies using indicators.

Moderator: admin

Conditionally closing a pending entry order

Postby FrostyTrader » Mon Jul 02, 2018 11:25 pm

Gday folks ive been experimenting with a variety of different stop methods for a trade that has already been entered (eg. trailing stops, candle high/lows, fixed stops, etc) however after reading the sdk instructions top to bottom i cannot figure out how to do set an entry order that will be triggered if market reaches it, but more importantly - if the market goes in the opposite direction to the entry order BEFORE its hit by 'x' amount of pips or if a certain cancel condition is met, then that entry order is to be cancelled before ever having entered the market. Would greatly appreciate any advice in this instance as everything i've seen with reference to closing/cancelling an order either closes a pre-existing order or creates a new order in the opposing direction. Cheers.
FrostyTrader
 
Posts: 7
Joined: Sat Jul 25, 2015 9:54 pm

Re: Conditionally closing a pending entry order

Postby Apprentice » Sun Jul 22, 2018 8:54 am

Try Entry Order Strategy.lua
viewtopic.php?f=28&t=2712
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19427
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Discussions

Who is online

Users browsing this forum: No registered users and 2 guests