What is the psuedo code for this EA?
What I think it is is:
If Marney Range Indicator, 0 is > Marney Range Indicator, 3
&& if Marney Volume, 0 is > Marney Volume, 3
&& if High[shift] > iHighest [shift +1]
Am I correct?
If I am correct, few questions:
* what is this condition saying: "(marneyfilters && mribars>minbars && mvibars>minbars)" The minibars is a variable set to 2 and not referenced again
* how many bars back is the High have to be higher than on the iHighest? It just says [Shift+1]. Does that mean only 1 bar back?
* What does the "mribars++" at the end of the condition of MRI and MVI mean? are the ++ mean repeat shifting back 1 and then a second time?
Thanks for your teachings to me!
-Stearno
Inserted Code
extern string entrylogics="Entry Logics"; bool strategy1=true; extern bool breakout=true; extern int candles = 2; extern bool marneyfilters=true; extern string mri="MRI"; extern int AveragePeriod1 = 50; extern string mvi="MVI"; extern int AveragePeriod2 = 10; extern int minbars = 2; extern int shift=1; mribars=0; for(i=shift;i<=500;i++){ if(iCustom(NULL,0,"Marney range indicator",AveragePeriod1,0,i)<iCustom(NULL,0,"Marney range indicator",AveragePeriod1,3,i))break; if(iCustom(NULL,0,"Marney range indicator",AveragePeriod1,0,i)>iCustom(NULL,0,"Marney range indicator",AveragePeriod1,3,i))mribars++; } mvibars=0; for(i=shift;i<=500;i++){ if(iCustom(NULL,0,"Marney volume indicator",AveragePeriod2,0,i)<iCustom(NULL,0,"Marney volume indicator",AveragePeriod2,3,i))break; if(iCustom(NULL,0,"Marney volume indicator",AveragePeriod2,0,i)>iCustom(NULL,0,"Marney volume indicator",AveragePeriod2,3,i))mvibars++; } signal=0; if((marneyfilters==false || (marneyfilters && mribars>minbars && mvibars>minbars)) && (breakout==false || (breakout && High[shift]>High[iHighest(NULL,0,MODE_HIGH,candles,shift+1)]))){ if(reversesignal==false){signal=1;if(oppositeclose)close(OP_SELL,"",s1);} if(reversesignal){signal=2;if(oppositeclose)close(OP_BUY,"",s1);} } if((marneyfilters==false || (marneyfilters && mribars>minbars && mvibars>minbars)) && (breakout==false || (breakout && Low[shift]<Low[iLowest(NULL,0,MODE_LOW,candles,shift+1)]))){ if(reversesignal==false){signal=2;if(oppositeclose)close(OP_BUY,"",s1);} if(reversesignal){signal=1;if(oppositeclose)close(OP_SELL,"",s1);} }
What I think it is is:
If Marney Range Indicator, 0 is > Marney Range Indicator, 3
&& if Marney Volume, 0 is > Marney Volume, 3
&& if High[shift] > iHighest [shift +1]
Am I correct?
If I am correct, few questions:
* what is this condition saying: "(marneyfilters && mribars>minbars && mvibars>minbars)" The minibars is a variable set to 2 and not referenced again
* how many bars back is the High have to be higher than on the iHighest? It just says [Shift+1]. Does that mean only 1 bar back?
* What does the "mribars++" at the end of the condition of MRI and MVI mean? are the ++ mean repeat shifting back 1 and then a second time?
Thanks for your teachings to me!
-Stearno