|
I think the VQ is the same. You must make sure that you compiled the VQ (ex4).
It is easy to add rules to the current code.
Say you want a MA cross:
double MA10 = iMAdouble iMA( string symbol, int timeframe, 50, int ma_shift, int ma_method, int applied_price, 0)
double MA11 = iMAdouble iMA( string symbol, int timeframe, 50, int ma_shift, int ma_method, int applied_price, 1)
double MA20 = iMAdouble iMA( string symbol, int timeframe, 200, int ma_shift, int ma_method, int applied_price, 0)
double MA21 = iMAdouble iMA( string symbol, int timeframe, 200, int ma_shift, int ma_method, int applied_price, 1)
add the above under the following code:
double Entry1 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,14 85, 0, 1);
double Entry2 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,14 85, 0, 2);
double Up2 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,14 85, 1, 2);
double Down2 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,14 85, 2, 2);
Then add the following to the entry buy rule:
if (Up2==Down2 && Entry1>Entry2 && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount))))
MA10>MA20 && MA11<M21 && all the other rules. This is a cross up entry.
The change that 4 indicators will be up at the same time will give a few trades. For instance the MA10>MA20 will give trades only when trend is up but a cross only happens every now and then. So use the trend instead of a cross....etc.
Hope this help.
|