previous 1,2,3 bars high should be greater than to previous 4,5,6 bars low

Back to topics list To post a new topic, please log in or register
avatar
7
rera7 2015.10.01 18:09
 

hi iam started learnig to write a code

need to write this 

if previous 1,2,3 bars highest of high value should be higher than the previous 4,5,6, bars lowest of low .

anybody help me !!

avatar
12985
WHRoeder 2015.10.02 02:06 #
 
rera7: iam started learnig to write a code
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
avatar
Moderator
3407
GumRai 2015.10.02 04:09 #
 
rera7:

hi iam started learnig to write a code

need to write this 

if previous 1,2,3 bars highest of high value should be higher than the previous 4,5,6, bars lowest of low .

anybody help me !!

Look in the Editor help documentation for High and iHigh
avatar
7
rera7 2015.10.02 14:44 #
 

thanks for your suggestions. after going through iHighest,iLowest  functions .. this is what i got

    > if { previous 1,2,3 bars highest of high value > previous 4,5,6, bars lowest of low }

if( High[iHighest(NULL,0,MODE_HIGH,3,1)] > Low[iLowest(NULL,0,MODE_LOW,3,4)])

 is this correct ?  added 4 in above function ,so it will start from previous fourth bar!

avatar
Moderator
3407
GumRai 2015.10.02 14:55 #
 
rera7:

thanks for your suggestions. after going through iHighest,iLowest  functions .. this is what i got

    > if { previous 1,2,3 bars highest of high value > previous 4,5,6, bars lowest of low }

 is this correct?

Looks correct to me
avatar
7
rera7 2015.10.02 15:09 #
 
Thank you sir.
Back to topics list  

To add comments, please log in or register