i would like to ask you something...
i have strategy where i want to buy when the price is higher than 100 for example. But I want to sell what i bought when the price fall down under 50.
So 50 is my stoploss. But when the price is 100 (and i bought) and now is the price still growing up i want to move my stoploss to 80. So my question is:
What kind of method can set the limit when my strategy has to buy?
I found something like EnterLongLimit(100) and when is the bar (in chart) growing up the strategy will buy. But I don't know if the strategy bought something and I have to set stoploss.
I just set EnterLongLimit(100) but it will not tell me when is the strategy buying something.. it just buy but i can't adequate answer for this action because i don't know it happend.


Comment