hi forextsd experts
Can you help with this coding please!
thanks in advance
ford
hi forextsd experts
Can you help with this coding please!
thanks in advance
ford
mr tools
can you do something about this code please!
Dear forextsd experts
I request you -please code the following in metatrader(mt4 or mq4)
can you please code this in metatrader code!!
Jimberg created the truth about volatility concept.i uses Average true range over 10 periods as basis.
details are given below from amibroker language
------------------
The code concept is as follows-CAN somebody can code it in MQ4??
thanks in advance.
=========================
AMIBROKER, volatility SYSTEM.
//Here is a sample AmiBroker chart demonstrating the techniques from Jim Berg’s article in this issue.
//NOTE ATR(10) is average true range over 10 periods.
//trailing stop is great
// trailing stop highest high value of Delta in recent 15 data points
//DELTA IS (CLOSE - 2* ATR(10))
//Formula calculates highest high value of delta in recent 15 periods-this is plotted as trailing stop.
//exit signal is IF close greater than highest high value of hdt, where hdt = (HIGHEST HIGH VALUE OVER 20 PERIODS LESS 2 TIMES ATR(10))
//HDT =HHV(H,20) - 2* ATR(10) ;
//EXITSIGNAL =C < HDT
//Entry Signal = C>LDT ;
//REMEMBER LDT = LLV( L, 20 ) + 2 * ATR( 10 )
//LISTING 1
EntrySignal = C > ( LLV( L, 20 ) + 2 * ATR( 10 ) );
ExitSignal = C < ( HHV( H, 20 ) – 2 * ATR( 10 ) );
Color = IIf( EntrySignal, colorBlue, IIf( ExitSignal, colorOrange, colorGrey50 ));
//TrailStop = HHV( C – 2 * ATR(10), 15 );
TrailStop = HHV(DELTA,15);
ProfitTaker = EMA( H, 13 ) + 2 * ATR(10);
/* plot price chart and stops */
Plot( TrailStop, “Trailing stop”, colorBrown, styleThick | styleLine );
Plot( ProfitTaker, “Profit taker”, colorLime, styleThick );
Plot( C, “Price”, Color, styleBar | styleThick );
//PRICE BAR GETS COLOR BLUE IF ENTRY SIGNAL IS TRUE AND BAR GETS ORANGE IF EXIT SIGNALK IS TRUE
//BLUE COLOR OF PRICE BAR INDICATES UPSIDE volatility COMING INTO MARKET
/* plot color ribbon */
Plot( 1, “”, Color, styleArea | styleOwnScale | styleNoLabel, -0.1, 50 );
==================
NOTES ON CONCEPT
Jimberg a position trader develops trading system based on volatility.
the code look AT Lowest low in recent 20 data points.(LLV(L,20)
entry is taken only if price moves above ( LLV(L,20) + 2* ATR(10) )
pRICE IS IN BARS and bar gets blue color if price close above ( LLV(L,20) + 2* ATR(10) ).
The zone between LLV(L,20) and LLV(L,20)+ 2*ATR(10) IS NO long ENTRY AS volatility DOESNT CONFIRM STRENGTH IN MARKET MOVE.
A plot of ( LLV(L,20) +2*ATR(10)) shows a line -only above that an long entryis good enough or qualified.
A plot of ( HHV(H,20) -2*ATR(10) ) shows a barrier-only if price begins dropping below it you can say sell exit is good enough or qualified.
a really good trailing stop code.
LongTrailStop = HHV( C - 2.0 * ATR(10), 15 ); means HHV(DELTA,15) where delta = Close -2*ATR(10)
This is very good on 4 hour or daily charts.
what about targets? profit target or
profit taker = EMA(H,13) +2*ATR(10)
ACTUALLY ,once we good a entryPRICE, above no volatility zone,we can project TARGET1 =entryPRICE +2*ATR(10),TARGET2 =ENTRYPRICE +4*ATR(10) AND SO ON.
Thanks in advance
mladen-please help if you get spare time!!!!!!!!!!!Looks like ATR trail stops, have you looked at this thread https://www.mql5.com/en/forum/174228 ?
Coding something from one platform to another is always a gamble : one has to have both platforms in order to be able to compare the results (it is not enough just to assume from the name of the function what does it do - it happened to me numerous times). So the main problem is that you need someone that is familiar and is using both platforms
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear forextsd experts
I request you -please code the following in metatrader(mt4 or mq4)
can you please code this in metatrader code!!
Jimberg created the truth about volatility concept.i uses Average true range over 10 periods as basis.
details are given below from amibroker language
------------------
The code concept is as follows-CAN somebody can code it in MQ4??
thanks in advance.
=========================
AMIBROKER, volatility SYSTEM.
//Here is a sample AmiBroker chart demonstrating the techniques from Jim Berg’s article in this issue.
//NOTE ATR(10) is average true range over 10 periods.
//trailing stop is great
// trailing stop highest high value of Delta in recent 15 data points
//DELTA IS (CLOSE - 2* ATR(10))
//Formula calculates highest high value of delta in recent 15 periods-this is plotted as trailing stop.
//exit signal is IF close greater than highest high value of hdt, where hdt = (HIGHEST HIGH VALUE OVER 20 PERIODS LESS 2 TIMES ATR(10))
//HDT =HHV(H,20) - 2* ATR(10) ;
//EXITSIGNAL =C < HDT
//Entry Signal = C>LDT ;
//REMEMBER LDT = LLV( L, 20 ) + 2 * ATR( 10 )
//LISTING 1
EntrySignal = C > ( LLV( L, 20 ) + 2 * ATR( 10 ) );
ExitSignal = C < ( HHV( H, 20 ) – 2 * ATR( 10 ) );
Color = IIf( EntrySignal, colorBlue, IIf( ExitSignal, colorOrange, colorGrey50 ));
//TrailStop = HHV( C – 2 * ATR(10), 15 );
TrailStop = HHV(DELTA,15);
ProfitTaker = EMA( H, 13 ) + 2 * ATR(10);
/* plot price chart and stops */
Plot( TrailStop, “Trailing stop”, colorBrown, styleThick | styleLine );
Plot( ProfitTaker, “Profit taker”, colorLime, styleThick );
Plot( C, “Price”, Color, styleBar | styleThick );
//PRICE BAR GETS COLOR BLUE IF ENTRY SIGNAL IS TRUE AND BAR GETS ORANGE IF EXIT SIGNALK IS TRUE
//BLUE COLOR OF PRICE BAR INDICATES UPSIDE volatility COMING INTO MARKET
/* plot color ribbon */
Plot( 1, “”, Color, styleArea | styleOwnScale | styleNoLabel, -0.1, 50 );
==================
NOTES ON CONCEPT
Jimberg a position trader develops trading system based on volatility.
the code look AT Lowest low in recent 20 data points.(LLV(L,20)
entry is taken only if price moves above ( LLV(L,20) + 2* ATR(10) )
pRICE IS IN BARS and bar gets blue color if price close above ( LLV(L,20) + 2* ATR(10) ).
The zone between LLV(L,20) and LLV(L,20)+ 2*ATR(10) IS NO long ENTRY AS volatility DOESNT CONFIRM STRENGTH IN MARKET MOVE.
A plot of ( LLV(L,20) +2*ATR(10)) shows a line -only above that an long entryis good enough or qualified.
A plot of ( HHV(H,20) -2*ATR(10) ) shows a barrier-only if price begins dropping below it you can say sell exit is good enough or qualified.
a really good trailing stop code.
LongTrailStop = HHV( C - 2.0 * ATR(10), 15 ); means HHV(DELTA,15) where delta = Close -2*ATR(10)
This is very good on 4 hour or daily charts.
what about targets? profit target or
profit taker = EMA(H,13) +2*ATR(10)
ACTUALLY ,once we good a entryPRICE, above no volatility zone,we can project TARGET1 =entryPRICE +2*ATR(10),TARGET2 =ENTRYPRICE +4*ATR(10) AND SO ON.
Thanks in advance
mladen-please help if you get spare time!!!!!!!!!!!