Its the first strategy that i post here, so don't expect ground breaking stuff, when testing my indicators i always used prorealtime and not tradingview. This strategy use signals generated by the peak/valley estimator indicator i posted long ago, i think the signals generated where sometimes quite accurate in some markets thus providing potential material for a profitable strategy.
The indicator use 3 parameters, therefore the optimisation process is not easy, but i selected what i judged good parameters values at first glance. The strategy is in its more simple form without stop or anything, the detection of peaks and valley can allow for tighter stops since we expect the price to reverse, but take into account that sops and take profits are parameters subject to optimization process except if selected with strict money management rules and not profit optimization.
Of course trading the strategy in this form is far from being great, if we take into account the market non stationarity then we might expect loss during trending markets. Trend strength indicators could help switch from a reversal to breakout strategy thus maybe providing more control.
I really hope you find an use for the strategy.
Its been three long years since i started tradingview, and i put more efforts in my indicators than in my studies and life overall, this have created complicated situations and i can't afford to follow up with this, therefore i announce that in the end of june i will leave tradingview for quite a long time, at least until i have my degree. I announce it in advance in case some of you want helps of any kind. I will post all the indicators, both in progress and finished i have made during those three years. I hope you can all understand.
Thanks for reading !
After read your note, my first feeling is sad and I would love announce to all traders who in tradingview was accepted Alexgrover creations. Alexgrover is one of the best algo developer in here. Today, Alexgrover may faced some personal issue that can't afford to stay in tradingview.
Me Iceki although is not a rich people however I would love to give a hands to donate as much as possible to let Alexgrover to stay in tradingview. Because Alexgrover is also one of the GENEROUS and KINDA people in tradingview. Therefore to all traders and developer I hope you guys can also give Alexgrover a hands too. I represent Alexgrover strongly appreciated to all of you. Thank You to all of you!
All my suggestion is my personal idea! Alexgrover didn't requested or mentioned anything that request for the donations or others support from the society. If someone want to blame please just directly blame to me instead. Thank you everyone.
not sure what the future results will be so i have to wait a couple of day’s to get a more reliable result. Maybe you have Some advice on what other type of indicator i can add to make it possibly better besides a take profit/stop loss.
I understand your decision to leave. Hopefully we see you back once in the future.
Again good luck with your plans.:)
In order to add this rule in the strategy first add fixnan in line 11 such that : sign = fixnan(...., then replace 0 at the end by : na, you will have sign = fixnan(......:na), this will allow sign to be always 1 or -1, then add as buy condition :
if crossover(close,ma) and sign == 1
and sell condition :
if crossunder(close,ma) and sign == -1
where ma is the moving average of your choice. This strategy can be used with all the indicators you want its just : if buy signal and sign == 1/if sell signal and sign == -1. If the indicators you plan to use are fast but generates whipsaw trades then the peak valley estimator can be of great help.
I hope this help :)