i am beginner in amibroker and done my work best of my knowledge.
I want to generate higher high code on current candle and catch the high value of both
candle(previous higher candle and current high)...
my code work some time but I do get many false signal
this is my code....
nhigh = Param( "Left Strength",10, 1, 50, 1 );
pk=HHV(High,nhigh)==High;
for( i = 0; i < 3; i++ )
{
VarSet( "peak" + i, ValueWhen( pk, High, i ) );
}
Sell=peak1>peak2 AND High>=HHV(High,nhigh)
Need help to solve this.....
Thank you so much in advance for your help!
Moderator comment: Code tags should be applied to CODE only not to entire text. Corrected now. Next time use the EDIT button to correct mistakes on your own time and try not to waste other people time.