hi Mr.Mladen, hieveryone...i wish i was in the right place, i need a help, pleasemodificationsto these indicators,so thatchanges colormagentalinewhen itcrossed thecolor lineskyblue...example:when thecrossrises,the colormagentalineturns green,andwhen itcrossesdownturn red..thanks before.sorryfor my english:)
Hello Mladen, you have helped me in the past with modifying some indicators and I greatly appreciate your efforts. I hope you can help with this indicator. It is a candle time indicator but independent of ticks and has option to select one's preferred choice of timeframes to monitor. That is why I love this indicator. The only problem I have with it is that when I load it on a chart it appears in the middle of the chart so that sometimes I have difficulty seeing it properly as a result of price candles' movement. I hope you can modify it so that it has the option to make it appear at any corner of the chart to the right. I attach the indicator with a picture illustration of what I mean.
price reached =3444.00 (=4 points) trailing distance reached (4000=4 points) then move stoploss using 'step' (2000= 2 points) new stoploss now is =3434.00 (=+2 points from step)
-------
price reached =3448.00 (=+4 points) trailing distance reached (4000=4 points) then move stoploss using 'step' (2000= 2 points) new stoploss now is =3436.00 (=+2 points from step)
-------
price grown up to =3452.00 (=+4 points) trailing distance reached (4000=4 points) then move stoploss using 'step' (2000= 2 points) new stoploss now is =3438.00 (=+2 points from step)
-------
when is a "buy" operation , step (increase the stoploss price) when is a "sell" operation, step (decrease the stoploss price)
I need your help to check code EA for using SmStrengthRange 09_v2.4 Indicator
after pair cross ex EURUSD (EUR cross to USD upper) then first Divergence green dot appear = BUY (EUR cross to USD Lower) then first Divergence red dot appear = SELL
I just tried my self but cannot work Please check this code and correct
I need your help to check code EA for using SmStrengthRange 09_v2.4 Indicator
after pair cross ex EURUSD (EUR cross to USD upper) then first Divergence green dot appear = BUY (EUR cross to USD Lower) then first Divergence red dot appear = SELL
I just tried my self but cannot work Please check this code and correct
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
hi mr mladen
please make MTF to it
regard
Here is the multi time frame version
Hi mladen,
here is the sample-ea
Mladen,
the trailing step work in the same way for buy or sell operations...
it's move the "stoploss" using the trailing step.
for example: (a buy example)
EA Input:
=========
TakeProfit =22000 (22 points)
Trailing_Distance=4000 (4 points)
Trailing_Step =2000 (2 points)
StopLoss =8000 (8 points)
====operation entry
buy at price 3440.00
stoploss =3432.00 (entrance -8 points)
takeprofit =3462.00 (entrance +22 points)
-------
price reached =3444.00 (=4 points)
trailing distance reached (4000=4 points)
then move stoploss using 'step' (2000= 2 points)
new stoploss now is =3434.00 (=+2 points from step)
-------
price reached =3448.00 (=+4 points)
trailing distance reached (4000=4 points)
then move stoploss using 'step' (2000= 2 points)
new stoploss now is =3436.00 (=+2 points from step)
-------
price grown up to =3452.00 (=+4 points)
trailing distance reached (4000=4 points)
then move stoploss using 'step' (2000= 2 points)
new stoploss now is =3438.00 (=+2 points from step)
-------
when is a "buy" operation , step (increase the stoploss price)
when is a "sell" operation, step (decrease the stoploss price)
hi mr mladen:
could you make a simple histogram of this useful indicator
regard
Here is the multi time frame version
Dear Mladen,
I need your help to check code EA for using SmStrengthRange 09_v2.4 Indicator
after pair cross ex EURUSD
(EUR cross to USD upper) then first Divergence green dot appear = BUY
(EUR cross to USD Lower) then first Divergence red dot appear = SELL
I just tried my self but cannot work
Please check this code and correct
// Indicator Calling
double USD=iCustom(NULL,0,"smStrengthRange09_v2.4",3,shift);
double USD1=iCustom(NULL,0,"smStrengthRange09_v2.4",3,shift+1);
double EUR=iCustom(NULL,0,"smStrengthRange09_v2.4",4,shift);
double EUR1=iCustom(NULL,0,"smStrengthRange09_v2.4",4,shift+1);
double GBP=iCustom(NULL,0,"smStrengthRange09_v2.4",5,shift);
double GBP1=iCustom(NULL,0,"smStrengthRange09_v2.4",5,shift+1);
double CHF=iCustom(NULL,0,"smStrengthRange09_v2.4",6,shift);
double CHF1=iCustom(NULL,0,"smStrengthRange09_v2.4",6,shift+1);
double JPY=iCustom(NULL,0,"smStrengthRange09_v2.4",7,shift);
double JPY1=iCustom(NULL,0,"smStrengthRange09_v2.4",7,shift+1);
double AUD=iCustom(NULL,0,"smStrengthRange09_v2.4",8,shift);
double AUD1=iCustom(NULL,0,"smStrengthRange09_v2.4",8,shift+1);
double CAD=iCustom(NULL,0,"smStrengthRange09_v2.4",9,shift);
double CAD1=iCustom(NULL,0,"smStrengthRange09_v2.4",9,shift+1);
double NZD=iCustom(NULL,0,"smStrengthRange09_v2.4",10,shift);
double NZD1=iCustom(NULL,0,"smStrengthRange09_v2.4",10,shift+1);
double green=iCustom(NULL,0,"smStrengthRange09_v2.4",11,shift);
double greena=iCustom(NULL,0,"smStrengthRange09_v2.4",11,shift+1);
double red=iCustom(NULL,0,"smStrengthRange09_v2.4",12,shift);
double reda=iCustom(NULL,0,"smStrengthRange09_v2.4",12,shift+1);
//Entry signal
if ((green!=EMPTY_VALUE && !(greena!=EMPTY_VALUE && EUR>USD)) signal1=1;
if((red!=EMPTY_VALUE && !(reda!=EMPTY_VALUE && EUR<USD)) signal2=2;
Please request help to see this code and correct
Thanks and regards
Dear Mladen,
I need your help to check code EA for using SmStrengthRange 09_v2.4 Indicator
after pair cross ex EURUSD
(EUR cross to USD upper) then first Divergence green dot appear = BUY
(EUR cross to USD Lower) then first Divergence red dot appear = SELL
I just tried my self but cannot work
Please check this code and correct
// Indicator Calling
double USD=iCustom(NULL,0,"smStrengthRange09_v2.4",3,shift);
double USD1=iCustom(NULL,0,"smStrengthRange09_v2.4",3,shift+1);
double EUR=iCustom(NULL,0,"smStrengthRange09_v2.4",4,shift);
double EUR1=iCustom(NULL,0,"smStrengthRange09_v2.4",4,shift+1);
double GBP=iCustom(NULL,0,"smStrengthRange09_v2.4",5,shift);
double GBP1=iCustom(NULL,0,"smStrengthRange09_v2.4",5,shift+1);
double CHF=iCustom(NULL,0,"smStrengthRange09_v2.4",6,shift);
double CHF1=iCustom(NULL,0,"smStrengthRange09_v2.4",6,shift+1);
double JPY=iCustom(NULL,0,"smStrengthRange09_v2.4",7,shift);
double JPY1=iCustom(NULL,0,"smStrengthRange09_v2.4",7,shift+1);
double AUD=iCustom(NULL,0,"smStrengthRange09_v2.4",8,shift);
double AUD1=iCustom(NULL,0,"smStrengthRange09_v2.4",8,shift+1);
double CAD=iCustom(NULL,0,"smStrengthRange09_v2.4",9,shift);
double CAD1=iCustom(NULL,0,"smStrengthRange09_v2.4",9,shift+1);
double NZD=iCustom(NULL,0,"smStrengthRange09_v2.4",10,shift);
double NZD1=iCustom(NULL,0,"smStrengthRange09_v2.4",10,shift+1);
double green=iCustom(NULL,0,"smStrengthRange09_v2.4",11,shift);
double greena=iCustom(NULL,0,"smStrengthRange09_v2.4",11,shift+1);
double red=iCustom(NULL,0,"smStrengthRange09_v2.4",12,shift);
double reda=iCustom(NULL,0,"smStrengthRange09_v2.4",12,shift+1);
//Entry signal
if ((green!=EMPTY_VALUE && !(greena!=EMPTY_VALUE && EUR>USD)) signal1=1;
if((red!=EMPTY_VALUE && !(reda!=EMPTY_VALUE && EUR<USD)) signal2=2;
Please request help to see this code and correct
Thanks and regards
You are not checking crosses. You are just checking if some value is greater than or smaller than the other value
For crosses you have to check at least 2 values of 2 buffers (4 values to check)
Hi Pro-Coders,
I would like to implement an bool RSI filter which may be either switched on or off.
Can / should this routine be optimzed?
if(RSI_on=true)
{
if(trendNow!=trendPrev)
{
if(trendNow>0 && (NLD1>NLD2) && RSIfilter>51)
{
OpenBuy_ =true;
CloseSell_=true;
}
else
if(trendPrev>0 && (NLD1<NLD2) && RSIfilter<49)
{
OpenSell_=true;
CloseBuy_=true;
}
}
}
else
if(trendNow!=trendPrev)
{
if(trendNow>0 && (NLD1>NLD2))
{
OpenBuy_ =true;
CloseSell_=true;
}
else
if(trendPrev>0 && (NLD1<NLD2))
{
OpenSell_=true;
CloseBuy_=true;
}
}
Hi Pro-Coders,
I would like to implement an bool RSI filter which may be either switched on or off.
Can / should this routine be optimzed?
if(RSI_on=true)
{
if(trendNow!=trendPrev)
{
if(trendNow>0 && (NLD1>NLD2) && RSIfilter>51)
{
OpenBuy_ =true;
CloseSell_=true;
}
else
if(trendPrev>0 && (NLD1<NLD2) && RSIfilter<49)
{
OpenSell_=true;
CloseBuy_=true;
}
}
}
else
if(trendNow!=trendPrev)
{
if(trendNow>0 && (NLD1>NLD2))
{
OpenBuy_ =true;
CloseSell_=true;
}
else
if(trendPrev>0 && (NLD1<NLD2))
{
OpenSell_=true;
CloseBuy_=true;
}
}
Try like this (this should be the whole code replacing the upper code):
if(trendNow>0 && (NLD1>NLD2) && (!RSI_on || (RSI_on && RSIfilter>51)))
{
OpenBuy_ =true;
CloseSell_=true;
}
else
if(trendPrev>0 && (NLD1<NLD2) && (!RSI_on || (RSI_on && RSIfilter<49)))
{
OpenSell_=true;
CloseBuy_=true;
}