Download MetaTrader 5

How to get those fractals to create an ea ?

To add comments, please log in or register
abu520
89
abu520  
https://www.mql5.com/en/code/10647
Fractal ZigZag (never repaints)
Fractal ZigZag (never repaints)
  • votes: 1
  • 2012.03.16
  • Point Zero
  • www.mql5.com
This indicator shows signals triggered using Fractals and the original ZigZag indicator. Signals are never -ever- repainted and is an useful tool to study the real behavior of the ZigZag indicator.
Marco vd Heijden
Moderator
5310
Marco vd Heijden  
abu520:
https://www.mql5.com/en/code/10647
iCustom(...
abu520
89
abu520  
Marco vd Heijden:

thanks for helping.

//+------------------------------------------------------------------+
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//+------------------------------------------------------------------+
//+---
double ExtHandle = 0;
//+---
//+------------------------------------------------------------------+
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//+------------------------------------------------------------------+
int OnInit()
   {
//+------------------------------------------------------------------+
   EventSetTimer(60);
//+------------------------------------------------------------------+
   ExtHandle = iCustom(Symbol(), 0, "FractalZigZagNoRepaint", CalculateOnBarClose, ZZDepth, ZZDev);
   
   if(ExtHandle == INVALID_HANDLE)
     {
      printf("Error creating FractalZigZagNoRepaint indicator");
      return(INIT_FAILED);
     }
//+------------------------------------------------------------------+
   return(INIT_SUCCEEDED);
   }
//+------------------------------------------------------------------+
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//+------------------------------------------------------------------+
and then ? how to get those arrow ?? like that ?? 
i tried that, but doesnt open any position..
   if ((SymbolInfoDouble(_Symbol, SYMBOL_ASK) < ExtHandle))
   {
   ConditionBuy = true;
   }
   
   if ((SymbolInfoDouble(_Symbol, SYMBOL_BID) > ExtHandle))
   {
   ConditionSell = true;
   }
abu520
89
abu520  
any help ??
Marco vd Heijden
Moderator
5310
Marco vd Heijden  
abu520:
any help ??

You talk about opening orders there is no code for opening orders in your code, you talk about arrows but there is also no code for creating arrows.

What do you want ? be specific.

abu520
89
abu520  

any good strategy for scalping ?

thanks for any sharing. 

abu520
89
abu520  
Marco vd Heijden:

You talk about opening orders there is no code for opening orders in your code, you talk about arrows but there is also no code for creating arrows.

What do you want ? be specific.

i give up for using iCustom.

now i need strategy for scalping.

any sharing ?? 

Marco vd Heijden
Moderator
5310
Marco vd Heijden  
abu520:

i give up for using iCustom.

now i need strategy for scalping.

any sharing ?? 

I think you need a lot more then that.

But you can try codebase:

https://www.mql5.com/en/code

MQL5 Code Base
MQL5 Code Base
  • www.mql5.com
MQL5 Source Code Library for MetaTrader 5
To add comments, please log in or register