I'm trying to write an ea but am having trouble. Hopefully someone can help. In the below section of the code, I want the Trailing Stop to be 3/4 (75%) of the ATR (20) indicator on the 1 Hour Time Frame:
Next, I want the Stop Loss to be Current Price - ATR (20) on the 1 Hour Time Frame:
I know it's probably simple, but I'm not that great with coding. Any help would be greatly appreciated!
Thanks in advance!
Inserted Code
param.2.name=Trailing Stop (indicator) param.2.id=TrailingStop param.2.type=function param.2.scope=verbatim param.2.value=iATR(NULL, NULL,20,1) param.2.hidden=0 param.2.category= param.2.accvalue.list=
Next, I want the Stop Loss to be Current Price - ATR (20) on the 1 Hour Time Frame:
Inserted Code
param.3.name=Stoploss (indicator) param.3.id=BuyStoploss param.3.type=function param.3.scope=verbatim param.3.value=iATR(NULL, NULL,21,1) param.3.hidden=0 param.3.category= param.3.accvalue.list=
I know it's probably simple, but I'm not that great with coding. Any help would be greatly appreciated!
Thanks in advance!