Does anyone know how to code in a trailing stop for amibroker? It is a short term SHORT system.
Here's what I have so far -
What I want is a trailing stop to follow behind at the highest high of the last 3 bars, also is there a way I can also put in a profit protecting stop at say 50% of open profits? I also want to put an intial stop at the High of the entry bar.
Thanks in advance for any help offered, I such a nuff nuff when it comes to writing code.
Here's what I have so far -
ApplyStop( stopTypeTrailing, stopModeBars, Ref(HHV(H,3),-1), True);
What I want is a trailing stop to follow behind at the highest high of the last 3 bars, also is there a way I can also put in a profit protecting stop at say 50% of open profits? I also want to put an intial stop at the High of the entry bar.
Thanks in advance for any help offered, I such a nuff nuff when it comes to writing code.