Coding help - page 704

 
mladen:

Lea

Here you go


P E R F E C T !!

Thank you again for your rapid help! Lea

 

Hi coders, a question:

 

if i want to create a signals dishboard based on one indicator with different settings for each timeframe and i want to use iCustom function to read its value how it can be done? If i write for example Lenght1(for first tf), Lenght2(for second tf) and so on i am not able then to use iCustom function.

 Have i to create a different source indicator (with different external variable names) for every timeframe i want to read its values? 

 
mladen:

You will probably have to enter parameters in a string and then parse parts from that string into appropriate arrays

Check this post for an example of that : https://www.mql5.com/en/forum/179807/page198

thanks, interesting!

 
thefxpros:

Hi coders, a question:

 

if i want to create a signals dishboard based on one indicator with different settings for each timeframe and i want to use iCustom function to read its value how it can be done? If i write for example Lenght1(for first tf), Lenght2(for second tf) and so on i am not able then to use iCustom function.

 Have i to create a different source indicator (with different external variable names) for every timeframe i want to read its values? 

You will probably have to enter parameters in a string and then parse parts from that string into appropriate arrays

Check this post for an example of that : https://www.mql5.com/en/forum/179807/page198

 
Dear Friend,

 

i need to coding,

candle close then if candle is UP then alert UP and candle is DOWN then alert DOWN any time frame

 

if you have pls share me, 

thank you in adance,

- jesing 

 

Hi

i have a problem with my trading Idea:

double BU1=iMA(Symbol(),0,ShortSma,0,MODE_SMA,PRICE_CLOSE,i+1);
     
 double BL1=iMA(Symbol(),0,LongSma,0,MODE_SMA,PRICE_CLOSE,i);

     
      string BUY="false";
      string SELL="false";

      if(TradeAfterTP==false&&!(BU1>Close[1]&&BL1>Close[1])||
      (TradeAfterTP&&BU1>Close[1]&&BL1>Close[1]))BUY="true";
      if(TradeAfterTP==false&&!(BL1<Close[1]&&BU1<Close[1])||
      (TradeAfterTP&&BL1<Close[1]&&BU1<Close[1]))SELL="true";
     
      string SignalBUY="false";

      string SignalSELL="false";

The EA open at false points Trades and close it in the next moments --- why?

Please any Help??

Thank you anyway...

Files:
 
BeastyBoy:

Hi

i have a problem with my trading Idea:

double BU1=iMA(Symbol(),0,ShortSma,0,MODE_SMA,PRICE_CLOSE,i+1);
     
 double BL1=iMA(Symbol(),0,LongSma,0,MODE_SMA,PRICE_CLOSE,i);

     
      string BUY="false";
      string SELL="false";

      if(TradeAfterTP==false&&!(BU1>Close[1]&&BL1>Close[1])||
      (TradeAfterTP&&BU1>Close[1]&&BL1>Close[1]))BUY="true";
      if(TradeAfterTP==false&&!(BL1<Close[1]&&BU1<Close[1])||
      (TradeAfterTP&&BL1<Close[1]&&BU1<Close[1]))SELL="true";
     
      string SignalBUY="false";

      string SignalSELL="false";

The EA open at false points Trades and close it in the next moments --- why?

Please any Help??

Thank you anyway...

The closing does not depend on that code. Check the part that checks when to close the order
 

Thank you Mladen.

Close is when :

 if((SELL=="true")||

or

 if((BUY=="true")

????

 
BeastyBoy:

Thank you Mladen.

Close is when :

 if((SELL=="true")||

or

 if((BUY=="true")

????

And when is "do nothing"?
 

And when is "do nothing"?

When Buy : BU1<Close[1] then waiting until BU1>Close[1] again, or is in sell modus.

The Idea is, that the EA buy (sell) any correction of a Trend.

Its the same Idea like the super Woody Princip.

Buy: Longer CCI >0 and fast CCI is = -100

Sorry for the confusion.....

Thank you

Reason: