I'm starting small and building.(KISS)
I can get it to recognize different setups. I can get it to recognize one setup and trade (It works and trades) But when I try to add additional it's a near miss.
For example:
if(vol1 > vol2 && cl1 < cl2) Order = SIGNAL_BUY; (works)
if(vol1 > vol2 && cl1 > cl1 + (h1-l1/2)) Order = SIGNAL_BUY; (doesn't work)
or
if( h1 - l1 < h2 - l2 && h2 > h3 && vol1 < vol2 ) Order = SIGNAL_BUY; (works BUT doesn't recognize bar h1 being smaller than h2)
For Variables I have
double vol = iVolume(NULL, 0, Current + 0);
double vol1 = iVolume(NULL, 0, Current + 1);
double vol2 = iVolume(NULL, 0, Current + 2);
double cl = iClose(NULL, 0, Current + 0);
double cl1 = iClose(NULL, 0, Current + 1);
double cl2 = iClose(NULL, 0, Current + 2);
double h = iHigh(NULL, 0, Current + 0);
double h1 = iHigh(NULL, 0, Current + 1);
double h2 = iHigh(NULL, 0, Current + 2);
double l = iLow(NULL, 0, Current + 0);
double l1 = iLow(NULL, 0, Current + 1);
double l2 = iLow(NULL, 0, Current + 2);
Any assistance would be appreciated.
I can get it to recognize different setups. I can get it to recognize one setup and trade (It works and trades) But when I try to add additional it's a near miss.
For example:
if(vol1 > vol2 && cl1 < cl2) Order = SIGNAL_BUY; (works)
if(vol1 > vol2 && cl1 > cl1 + (h1-l1/2)) Order = SIGNAL_BUY; (doesn't work)
or
if( h1 - l1 < h2 - l2 && h2 > h3 && vol1 < vol2 ) Order = SIGNAL_BUY; (works BUT doesn't recognize bar h1 being smaller than h2)
For Variables I have
double vol = iVolume(NULL, 0, Current + 0);
double vol1 = iVolume(NULL, 0, Current + 1);
double vol2 = iVolume(NULL, 0, Current + 2);
double cl = iClose(NULL, 0, Current + 0);
double cl1 = iClose(NULL, 0, Current + 1);
double cl2 = iClose(NULL, 0, Current + 2);
double h = iHigh(NULL, 0, Current + 0);
double h1 = iHigh(NULL, 0, Current + 1);
double h2 = iHigh(NULL, 0, Current + 2);
double l = iLow(NULL, 0, Current + 0);
double l1 = iLow(NULL, 0, Current + 1);
double l2 = iLow(NULL, 0, Current + 2);
Any assistance would be appreciated.