The MegaFxProfit indicator is a trading signals oscillator that use the median price position according to the recent highest high and lowest low boundaries of the market price.
The oscillator use a small smoothing function to make it more readable and therefore give delayed but clear signals of the market direction.
It could assimilate to a moving average of median price that cut the middle of a Donchian channel to send trading signals. Nothin new here, but I translated it from MT4 version following a request in the trading indicators forum.
The MegaFX indicator plots green and red signal arrows according to the oscillator cross of the zero line. The indicator should be used in conjunction of any other technical analysis or other set of trading indicators.
//PRC_MegaFX Profit | indicator
//04.11.2019
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//converted from MT4 code
// --- settings
period=21
// --- end of settings
if barindex>period then
hhigh = highest[period](high)
llow = lowest[period](low)
mean = (High + Low) / 2.0
temp = 0.66 * ((mean - llow) / (hhigh - llow) - 0.5) + 0.67 * Ld36
temp = Min(Max(temp, -0.999), 0.999)
mega = Log((temp + 1.0) / (1 - temp)) / 2.0 + result / 2.0
Ld36 = temp
result = mega
if result crosses over 0 then
r=0
g=255
drawarrowup(barindex,result) coloured(r,g,0)
elsif result crosses under 0 then
r=255
g=0
drawarrowdown(barindex,result) coloured(r,g,0)
endif
endif
return result coloured(r,g,0) style(line,2) as "MegaFX Profit", 0 coloured(255,255,0) style(line,3) as "0 level"
You must be logged in to post a comment.
I understand it. The question is, if I want to receive a signal not from level 0, but, for example, from -1 and +1, etc. How to do it so as not to edit the code, but to change it in the indicator settings. Thanks.
the question is removed, thanks. I had to learn programming))) everything was simple
Hi Nicholas. how to do this with indicator settings. Well - period, of course. Thank you.
Sorry, I attached a screenshot, but this did not work. I had the following go. How to make the settings line 20 and 24. Thank you.
Everytime an indicator or expert has "Mega", "Ultra"... in it, it's a pathetic loser XD But thanks for sharing :)
Bonjour j'arrive pas a integrer l'indicateur sur mt4 comment faire svp mercii