Hello folks,
I have an idea for a script that I desperately need help with.
Regarding the scripts attached - I would like to build on this and create two separate scripts (well, four I guess, because I need both a buy and a sell script for each) where:
1) The current bar's range (high to low) + 11 pips is automatically factored into the risk (eg. 2.5%) and an entry level is placed 1 pip below the low (for a sell) or 10 pips above the high (for a buy), and a stop-loss placed accordingly at 1 pip below (for a buy) or 10 pips above (for a sell). Also, simultaneously a take-profit order is set at the current bar's range + 21 (eg. if the bar's range is 50, then the TP is set at 71 pips above/below the bar.
2) For the second script, I would like the previous bar's range used in the above calculation instead of the current.
Basically, I just want to be able to drag these scripts onto my chart and have all the position sizing, entry, SL & TP entered automatically. It would really save a lot of time.
I would really appreciate some help in achieving this, or if anybody knows if something like this is already floating around, then please let me know.
-JR
I have an idea for a script that I desperately need help with.
Regarding the scripts attached - I would like to build on this and create two separate scripts (well, four I guess, because I need both a buy and a sell script for each) where:
1) The current bar's range (high to low) + 11 pips is automatically factored into the risk (eg. 2.5%) and an entry level is placed 1 pip below the low (for a sell) or 10 pips above the high (for a buy), and a stop-loss placed accordingly at 1 pip below (for a buy) or 10 pips above (for a sell). Also, simultaneously a take-profit order is set at the current bar's range + 21 (eg. if the bar's range is 50, then the TP is set at 71 pips above/below the bar.
2) For the second script, I would like the previous bar's range used in the above calculation instead of the current.
Basically, I just want to be able to drag these scripts onto my chart and have all the position sizing, entry, SL & TP entered automatically. It would really save a lot of time.
I would really appreciate some help in achieving this, or if anybody knows if something like this is already floating around, then please let me know.
-JR
Attached File(s)
BUY - 30.mq4
2 KB
|
294 downloads
SELL - 30.mq4
2 KB
|
288 downloads
Be happy, be humble.