Indicators: Shved Supply and Demand - page 4

Behzad Movaghar
5673
Behzad Movaghar  
Ay Hakeem:

Hello,

Thanks for the great Supply and demand indictor.

Can you tell me what 'Tuncoat' in the configuration settings means ?

Is there any way to access the buffers via iCustom ?


Thanks.

Hi

Turncoat means broken zone.

You can use indicator in your EA with following codes:

Use this line in OnInit function:

handle=iCustom(_Symbol,_Period,"shved_supply_and_demand_v1.4");

and use following lines in your function:

double R_high[], R_low[],S_high[],S_low[];
ArraySetAsSeries(R_high,true);
ArraySetAsSeries(R_low,true);
ArraySetAsSeries(S_high,true);
ArraySetAsSeries(S_low,true);
CopyBuffer(handle,4,0,1,R_high);  // highest price of nearest Resistance Zone
CopyBuffer(handle,5,0,1,R_low);   // lowest price of nearest Resistance Zone
CopyBuffer(handle,6,0,1,S_high);  // highest price of nearest Support Zone
CopyBuffer(handle,7,0,1,S_low);   // lowest price of nearest Support Zone 

In the above code make sure indicator buffer numbers that you use are 4,5,6,7
Above code may not be accurate, please refer to mql5 manual.


Ay Hakeem
51
Ay Hakeem  
Behzad Movaghar:

Hi

Turncoat means broken zone.

You can use indicator in your EA with following codes:

Use this line in OnInit function:

and use following lines in your function:

In the above code make sure indicator buffer numbers that you use are 4,5,6,7
Above code may not be accurate, please refer to mql5 manual.


Hello Behzad,

Thanks for the code. Are you able to give me the MT4 version code ?

Cheers

maly1705
16
maly1705  
Thank you so much for this indicator, it is really helpful to step back and see the big picture and make it easier for newbies to visualize. I hope you keep up the good work and keep updating if there's anything new
stanley ugwuanya
9
stanley ugwuanya  
Automated-Trading:

Shved Supply and Demand:

Author: Behzad Movaghar

hi behzad, been trying to get it on my Mac but im not sure how to download it. please help