Job finished
Specification
Make EA from pinescript indicator:
-when the indicator (histogram) changes from red to green, buy after the current bar closes. close the trade when it hits a tp (tp will be an input setting set by the user) or when the green bar changes to red (no SL needed)
-when the indicator (histogram) changes from green to red, sell after the current bar closes. close the trade when it hits a tp (tp will be an input setting set by the user) or when the red bar changes to green(no SL needed)
-include a break even system (i.e. set stop loss to break even after x amount of pips, which can be set by the user and can be turned on/off)
-include a trailing stop system (can be turned on/off) based off the parabolic sar
if parabolic SAR is on the other side, e.g. in a buy trade and the parabolic sar is above the price bar, ignore this and set the closest parabolic sar that is in the right direction as trailing stop.
-have setting that allows EA to place trades based on lots or % risk of account
-time frame setting (5min/15min/30min/1H/4H etc.)
The pinescript only has around 10 lines of code.
Feel free to reach out for pictures of what I'm saying etc or questions.