Coding help - page 512

 
Jeeves:
Hy guy, thanks for coming back.

You will not believe it, I put on a chart - & it's working !

Must have been me doing something wrong.

Many thanks anyway, & take care.

so we assume ,you are again going disappear with your Ea,any way when you plan to change your trading style again ?

 

Hello mladen,

could the errors be fixed in the below trailing EA

Files:
tandy.mq4  4 kb
 
mntiwana:
yes candyboy,reading you interestingly,can you explain your magic exercise with pictures which of RSI and Stoch indicator you are using ? ( RSI,S3,SSS,MMM)

you funny friend. here is link better explanation, than from me, with pictures for you

Spud's MTF FIB Breakout System @ Forex Factory

Spud's Predictive MTF Stochastics @ Forex Factory

 
candyman752:
Hello mladen, could the errors be fixed in the below trailing EA

candyman752

Remove the strict or rewrite the whole thing. Also, you are missing the Slippage variable (which prevented that ea from ever being compiled)

 
candyman752:
you funny friend. here is link better explanation, than from me, with pictures for you

Spud's MTF FIB Breakout System @ Forex Factory

Spud's Predictive MTF Stochastics @ Forex Factory

Hi candyman

thanks ,i will read that and see what comes out.

 
mladen:
candyman752 Try it out now : pow_1.01.mq4

Thanks mladen this is working out fine. The trailing stop code added is working wow.

 
mladen:
OK, will check it

Mladen,

Have you checked it ?

Thanks in advance.

Jo

 

Hi ProCoders,

I am currently working with the Autotrend Forecaster indicator.

I wrote the code below, but the EA is not opening trades.

Could someone kindly have a look?

Autotrendforecaster Indicator:

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 DodgerBlue

#property indicator_color2 OrangeRed

extern int TMperiod = 26;

extern double Intensity = 1.9;

extern int SL_distance_pips = 200;

// AutoTrendForecaster

double AutoTrendup=iCustom(Symbol(),0,"AutoTrendForecaster",TMperiod,Intensity,SL_distance_pips,0,bar);

double AutoTrendup_prev=iCustom(Symbol(),0,"AutoTrendForecaster",TMperiod,Intensity,SL_distance_pips,0,bar+1);

double AutoTrenddown=iCustom(Symbol(),0,"AutoTrendForecaster",TMperiod,Intensity,SL_distance_pips,1,bar);

double AutoTrenddown_prev=iCustom(Symbol(),0,"AutoTrendForecaster",TMperiod,Intensity,SL_distance_pips,1,bar);

// CCI Filter

double CCIFilter = iCCI(Symbol(),0,CCIPeriod,CCIMethod,bar);

//+------------------------------------------------------------------+

//| BUY

//+------------------------------------------------------------------+

if((AutoTrendup>0 && AutoTrendup!=EMPTY_VALUE) && !(AutoTrendup_prev>0 && AutoTrendup_prev!=EMPTY_VALUE) && (CCIFilter>100))

{

OpenBuy();

return(0);

}

//+------------------------------------------------------------------+

//| SELL

//+------------------------------------------------------------------+

if((AutoTrenddown>0 && AutoTrenddown!=EMPTY_VALUE) && !(AutoTrenddown_prev>0 && AutoTrenddown_prev!=EMPTY_VALUE) && (CCIFilter<100))

{

OpenSell();

return(0);

}

}

Thank you in advance!

Files:
autotrend.jpg  91 kb
 

candlebreaker.mq4

Hi mladen this indicator "candle breaker" shows only 500 bars in history once i clicked 1000 bars it freezes the platform i want it to show 2000 bars could you modify that?

regards.

Files:
 
HDHORDA4:
candlebreaker.mq4

Hi mladen this indicator "candle breaker" shows only 500 bars in history once i clicked 1000 bars it freezes the platform i want it to show 2000 bars could you modify that?

regards.

Try it out (it shows now as many candles I wish on my terminal) : candlebreaker_1.mq4

Files:
Reason: