Its possible to make EA base on this? - page 2

To add comments, please log in or register
Code2219 or probably 2319
430
Code2219 or probably 2319  
Anthony Ivan:

Hi Code2219 or probably 2319 this is correct?

   if(CopyBuffer(RSI_handle,0,index,1,RSI)<0)


RSI should be a double array.
the if condition you written checks for errors in CopyBuffer call.
so the actual value of RSI indicator, for bar index, will be storeed in RSI[0].

READ Docs
Anthony Ivan
371
Anthony Ivan  
Code2219 or probably 2319:
RSI should be a double array.
the if condition you written checks for errors in CopyBuffer call.
so the actual value of RSI indicator, for bar index, will be storeed in RSI[0].

READ Docs

Ok i will check it again.

Thanks for following me up.

Lucas Tavares
191
Lucas Tavares  

Nice idea, i wish you good luck on testing this strategy.

Can you put here this Indicator from the first image?
Thanks!

Anthony Ivan
371
Anthony Ivan  
lucastav:

Nice idea, i wish you good luck on testing this strategy.

Can you put here this Indicator from the first image?
Thanks!

Thanks.

Im not using custom indicator.

Just like this:

1. Put RSI on chart, then striped down the color.

2. Put Moving average on chart, then applied to RSI.

3. Put Bollinger Bands on chart, then applied to RSI.

4. Its done.

Just simple as that.

Anthony Ivan
371
Anthony Ivan  
Code2219 or probably 2319:
RSI should be a double array.
the if condition you written checks for errors in CopyBuffer call.
so the actual value of RSI indicator, for bar index, will be storeed in RSI[0].

READ Docs

I had a problem, EA open trade immediately after green line (MA that applied to RSI) cross outside UpperBand/LowerBand in birth of the candle.

Its not wait to candle closed (to confirm position of green line that realy closed outside the band)

This problem related to this?

if(CopyBuffer(RSI_handle,0,index,1,RSI)<0)

Anthony Ivan
371
Anthony Ivan  
Code2219 or probably 2319:
RSI should be a double array.
the if condition you written checks for errors in CopyBuffer call.
so the actual value of RSI indicator, for bar index, will be storeed in RSI[0].

READ Docs

Or maybe this?

   static datetime PrevBars=0;

   datetime time_0=iTime(0);

   if(time_0==PrevBars)

      return;

   PrevBars=time_0;

Code2219 or probably 2319
430
Code2219 or probably 2319  
Anthony Ivan:

I had a problem, EA open trade immediately after green line (MA that applied to RSI) cross outside UpperBand/LowerBand in birth of the candle.

Its not wait to candle closed (to confirm position of green line that realy closed outside the band)

This problem related to this?

if(CopyBuffer(RSI_handle,0,index,1,RSI)<0)

dude, read other EA codes, you'll gradually learn the best way to code your strategies.

it's a long way, that pays to be paved.

Code2219 or probably 2319
430
Code2219 or probably 2319  
Anthony Ivan:

Or maybe this?

   static datetime PrevBars=0;

   datetime time_0=iTime(0);

   if(time_0==PrevBars)

      return;

   PrevBars=time_0;

this will perform your operations, once per new bar. a good thing to do.

for candle situation, you probably are talking about checking whether it's  bullish or bearish candle, before doing trades
Anthony Ivan
371
Anthony Ivan  
Code2219 or probably 2319:

dude, read other EA codes, you'll gradually learn the best way to code your strategies.

it's a long way, that pays to be paved.

Okay :)

Anthony Ivan
371
Anthony Ivan  
Code2219 or probably 2319:
this will perform your operations, once per new bar. a good thing to do.

for candle situation, you probably are talking about checking whether it's  bullish or bearish candle, before doing trades

How to make this to:

enter the trade after this candle closed?

bullish/bearish candle is not important.

123
To add comments, please log in or register