I have uploaded a new version of the strategy.
To meet davidxiao's requirements posted here
viewtopic.php?f=27&t=60938#p95266This strategy has the following changes:
- Can decide if the entry price should be based from the current price (old behavior) or the previous close
- Previous close means it needs a bar means it needs a timeframe ... so now there is a timeframe parameter.
- Use Mandatory Closing has been renamed to Scheduled Termination as to avoid confusion with closing trades/orders.
- The strategy is intelligent such that it decides bid/ask pricing based off the direction you are trading.
To meet easytrading's requirements posted here
posting.php?mode=reply&f=31&t=59515#pr95977This strategy has the following changes:
- A Repeat parameter has been introduced which allows the strategy to effectively repeat itself placing more orders and not terminating after the first order.
- A Repeat Delay controls how long it should wait before "repeating", as defined in minutes.
- Close On Repeat means when the repeat delay is up and it will "repeat", any pending orders will be deleted.
- If it repeats, of course it will only place new trades if it is between the start and stop times. However, any pending orders will be closed once the repeat delay expires, regardless of the start/stop time window.
- CustomID is used to identify the previously placed orders with this strategy instance. If you have more than one instance,I recommend changing this value.
Alright enjoy.
Cheers,
MooMooForex