Search found 21 matches

One Trade per Trend

Hello Coders, I am trying to implement that my EA is just performing one Trade per Trend direction change. I did a simple approach, but this is not really working. Maybe someone could have a look and advise? input int i_MaximumOpenedOrders = 1; datetime GetLastOrderOpenTime(void) { datetime last_ope...

Re: Buffer 11 from "Step one more average 2.3 mtf" gives signal 1 for buy and signal -1 for sell, need to trade signal c

Try simply: if (buffer1[i+1] > 0 && buffer1[i] < 0) bufsellbuy[i] = -1 if (buffer1[i+1] < 0 && buffer1[i] > 0) bufsellbuy[i] = 1 For close / formed candles you should add '1' to each index 'i'. Hi Wojtek, thank you for your suggestion. I have also looked into your idea, and modified...

Re: Buffer 11 from "Step one more average 2.3 mtf" gives signal 1 for buy and signal -1 for sell, need to trade signal c

Another way #define _doNothing 0 #define _doBuy 1 #define _doSell 2 int start() { int doWhat = _doNothing; double trendc = iCustom(NULL,0,"step one more average 2.3 mtf",11,BarShift); // Buffer 11 double trendp = iCustom(NULL,0,"step one more average 2.3 mtf",11,BarShift+1); // ...

Buffer 11 from "Step one more average 2.3 mtf" gives signal 1 for buy and signal -1 for sell, need to trade signal cross

Hello Pro-Coders, I am looking for a method to get the Signal Cross from -1 to 1 for buy and from 1 to -1 for sell. I tried to code this, but a simple approach is not working. int OneMoreAverageIndicator() { int i; int BarShift = iBarShift(NULL,TimeFrame,Time[i],0); // BarShift 0 int OneMoreAverageS...

Re: Ichimoku System: Chikou Span (Lagging Span) below or above price issue in MQL4

Hi Tzamo, thank you for you suggestion! Unfortunately the EA is still only doing short trades as soon as the CHIKOUSPAN is involved. I even tried a simpler approach like below, but the result is the same, only short trades are executed. int ChikouIndicatorSignal() { int ChikouSignal; int BarShift =0...

Ichimoku System: Chikou Span (Lagging Span) below or above price issue in MQL4

Hello Pro-Coders, I wonder if someone could help me with my issue regarding Chikou Span (Lagging Span) below or above price. I would like to use this as an indicator in my Ichimoku EA, but for some reasons the EA is just taking short trades, but no long trades. When I leave the Chikou Span out the E...

Re: MT4 Indicator requests and ideas

Those parameters depend on your code, not the called indicator Create inputs for thos parameters and use them in the iCustom() call the way any iCustom() call uses external parameters Hi Mladen, thank you for your advise, I have implemented your Indicator without coding the input parameters in my E...

Return to the advanced search