Ask! - page 50

 
iscuba11:
#property indicator_level1 0.14

This creates a level of 0.14 that uses dash marks. How do I get it to use a solid line level, versus dash level from the program indicator??

Your Help is Appreciated!

Dave

<<<

Use SetLevelValue() instead of #property

 

Sequential Entry Conditions

I have some entry conditions that I would like to happen in a certain sequence how can I do this. Ie 1, 2 then 3

bool Long = MAofRSI11>MAofRSI21 && MAofRSI12VolHL && RSIndex1<HLM &&

RSIndex1>HL2 && TrStop<Close[shift];

bool Short = MAofRSI11=MAofRSI22 && VolCH>VolHL && RSIndex1HLM && TrStop>Close[shift];

bool Long2 = MAofRSI11>HLM && MAofRSI12HLM && MAofRSI22VolHL;

bool Short2 = MAofRSI11=HLM && MAofRSI21=HLM && VolCH>VolHL;

bool Long3 = RSIndex1-RSIndex2>20;

bool Short3 = RSIndex2-RSIndex1>20;

Cheers Beno

Files:
 

Yearly Pivot indicator - looking for this

Can anyone guide me where I can find the indicator that will plot the YEARLY Pivot?

Or if someone can tell me how to get the yearly OHLC, then I can modify the existing codes of pivot.

I cannot find a timeframe parameter for YEARLY, in this table:

Constant Value Description

PERIOD_M1 1 1 minute.

PERIOD_M5 5 5 minutes.

PERIOD_M15 15 15 minutes.

PERIOD_M30 30 30 minutes.

PERIOD_H1 60 1 hour.

PERIOD_H4 240 4 hour.

PERIOD_D1 1440 Daily.

PERIOD_W1 10080 Weekly.

PERIOD_MN1 43200 Monthly.

0 (zero) 0 Timeframe used on the chart.

HELPPPPPPPPP,, Thanks in advance

 
pipmonger:
Can anyone guide me where I can find the indicator that will plot the YEARLY Pivot?

Or if someone can tell me how to get the yearly OHLC, then I can modify the existing codes of pivot.

I cannot find a timeframe parameter for YEARLY, in this table:

Constant Value Description

PERIOD_M1 1 1 minute.

PERIOD_M5 5 5 minutes.

PERIOD_M15 15 15 minutes.

PERIOD_M30 30 30 minutes.

PERIOD_H1 60 1 hour.

PERIOD_H4 240 4 hour.

PERIOD_D1 1440 Daily.

PERIOD_W1 10080 Weekly.

PERIOD_MN1 43200 Monthly.

0 (zero) 0 Timeframe used on the chart.

HELPPPPPPPPP,, Thanks in advance

I wrote this function some time ago to get High and Low of specified year.

You can change it and get Close and Open prices too, it's easy

string getHL(int year, int type)

{

int janShift = iBarShift(Symbol(),PERIOD_MN1,StrToTime(year+".1.1"),false);

int i;

double highA[1],lowA[1];

ArrayResize(highA,12);

ArrayResize(lowA,12);

if(type == 1)

{//High

for(i=11;i>=0;i--)

{

highA = iHigh(Symbol(),PERIOD_MN1,janShift-i);

}

return(DoubleToStr(highA[ArrayMaximum(highA)],Digits));

}

else

{//Low

for(i=11;i>=0;i--)

{

double l = iLow(Symbol(),PERIOD_MN1,janShift-i);

if(l>0)

lowA = l;

else

lowA = EMPTY_VALUE;

}

return(DoubleToStr(lowA[ArrayMinimum(lowA)],Digits));

}

return("NULL");

}
 

Bollinger indicator alert

I need a sound alert whenever the Bollinger bands is broken, I think it was already done but I can not find it ... can you pls help me

 

Also I found this idea which seems prety good one from

cementman

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

Hi..I had tis idea when i've noticed that most of the people here ask for alert for some indicator specialy if they are manual traders like me so though i'm not a programmer i'd like to ask the programmers here to help me develpe tis aler indcator if it can be done.

well..we need to have a window with scroll arrow like the one on the MA's for instance that you choose from it simle or weighted..etc, insted this scroll arrow will contain all the indicators that people needs alert for lets start with standard ones if it's possible like RSI,Stochastic,williams, MACD, MA's..etc

Now in the second window check boxes for choosing wither it's a cross like the MA's or MACD that you need to have an alert for or is it a level like alerting when RSI is over 70 or under 30 and the same for other indicators with the same nature also some people needs both like alert me when the MACD is crossed with the signal line and over 0.002 as an example so whom ever want to have both can check both boxes, and if you want to be alerted only on crosses like MA's just chekc the cross box and the third box is if prices exceeded the MA or the upper or lower bollinger bands or some MA(just thought of it now) and plese if somebody have any other ideas feel free to share it so at the end we can come up with an alerting system for all the indicators that we know of at least the standard ones fir now.

So how about it you coders gurus out there

 

is it possible?

can this FX Sniper's Ergodic CCI & Trigger indicator modified to histogram rather than line?

 

range indicator

Would it be possible to create an indicator which counts, say, the last 16 bars of a 30 mins chart i.e. 8 hours worth and if the range of that period from the highest high to lowest low is under a set amount, say 25 pips, two lines appear on a chart and an email alert is sent to me?

This would be a huge help in my low volatility=potential breakout strategy.

Not an original idea I know but I can't see this kind of indicator anywhere. I've used the ATR but just not the same.

Thanks very much if you can help make it or point me in the direction of a similar indicator

 

HELP!!! IF (A>B) AND (|X| <1) AND (Y<Z) then..

Hi

I am so sorry if my question is very basic.

I am learing mql4.

Please help me how to express this math conditions in mql4:

IF( (A>B) AND (|X| <1) AND (Y<Z) ) then.. ... ... ...

|X| is absoulute; it means (X 1)

I got messege from MetaEditor

" IF EXPRESSION IS TOO COMPLEX"

After many times trying,... I have no more Idea..So please tell me how to..

Thanks

 
pawang:
Hi

I am so sorry if my question is very basic.

I am learing mql4.

Please help me how to express this math conditions in mql4:

IF( (A>B) AND (|X| <1) AND (Y<Z) ) then.. ... ... ...

|X| is absoulute; it means (X 1)

I got messege from MetaEditor

" IF EXPRESSION IS TOO COMPLEX"

After many times trying,... I have no more Idea..So please tell me how to..

Thanks

I am not a coder.

I studied Codersguru lessons together with everybody: it was one time when Codersguru was posting his lessons live (in real time) on this forum and many people (together with me) studied this lessons.

I remember that && is and.

|| is or.

And be cafully with ;, { and } and ( and ).

Also be cafuly with the point and number (just a number - 70,or 100, 0r -100, or 30, or whatever) because it should be coded in different way (don't remember now sorry).