Close Trades on Account on Daily SL and/or TP Targets with Optional Trail - Quick Load Code: a-pld
Will look at trades currently open and that have been closed today and will close open trades if supplied SL, i.e. draw down, and/or TP are hit and turn off trading. The targets can be specified in amount, percentage or pips. A trail of SL is also supported, including setting a start value and step. Trading can automatically re-activated on the following day at a set time.
Set 'PLd TP' to required TP level. Use % to supply as percentage or add p for pips, e.g. 50p, else will regarded as amount. Set to blank to turn off. Set 'PLd SL' to the required SL, i.e. draw down, again supports %, p or just amount or blank. Set 'PLd Period' to set reference point for closed trades. D1 will mean trades closed within current daily candle, but can use D1+2 to say add 2 hours or D1-2 to subtract two hours (say). Can also set to W1, i.e. currently week, or MN for current month. If blank then will just look at trades currently open.
Set 'PLd TrailStrt' for any start point to trailing of the SL. Again can be supplied at %, p, amount or blank to not have a start point. Trailing will start when profit gets to this value. Set 'PLd Trail' to value to trail SL by, i.e. will exit if gone back from peak profit by this value. Set to blank to turn trail off. Set 'PLd TrailStep' for any trail step, so that trail moves in discrete steps. Finally, set 'Reactive@' for any auto reactivation of trading at supplied server/chart time, or blank if not required.
Note, don't mix %, p or amount to together - need to all be the same.
TOP TIP: This rule is only need one chart. So, recommend opening a chart with symbol you don't normally trade and set EA input Main_configFileName to account.txt. Then when you load this rule it will for just be for that chart, as that EA input says what configuration file should be written to and read from. Will reduce CPU usage to only have one chart with this rule loaded.
Close Trades on Symbol on Daily SL and/or TP Targets with Optional Trail - Quick Load Code: a-plds
As a-pld rule but just works on chart symbol. Useful if you really love the a-pld rule but just want for symbol/chart.
Re-enable Trading At Set Time - Quick Load Code: a-ret
Will broadcast instruction to RunwiseFX EAs on other charts to start trading again at a set time of day. This achieved by changing the auto entry mode of the EAs to TC (trade continuous). The time should be specified in server/chart time. If set time to blank then will turn rule off. Note, the rules in this section already include this rule.