yes
but the important how many days up and down based on center line
AddColumn( UpPrev10, "UpPrev10", 1.2,colorGreen);
AddColumn( DnPrev10, "DnPrev10", 1.2,colorRed);
based in new period
AddColumn( newpireiod, "newpireiod", 1.2,colorGreen);
when i change this line
newpireiod=IIf(HHVBars(High,priod1)>LLVBars(Low,priod1),HHVBars(High,priod1),LLVBars(Low,priod1));// find which one occurs firs
to
newpireiod=IIf(HHVBars(High,priod1)>LLVBars(Low,priod1),LLVBars(Low,priod1),HHVBars(High,priod1));// find which one occurs last
it is give me good result so far
and i think is logic to measure the stock fluctuating between hi and low
so the solution from [portfoliobuilder] was good
thank you for both of you
Maybe I will find a stock that meets the specifications at least, trying to become rich before I die
The idea is to find out which stock is worth $1, and after five days or less, it will jump to 20 or more, or achieve a rate of 500% and higher.
That's why I bought AmiBrooker and started learning coding AFL