Page 20 of 24

Re: No Nonsense Forex - Indicators

Posted: Thu Mar 23, 2023 8:21 am
by colorwind
Hello Centaur:
can you please convert this from TradingView into mql5. thank you very much.

https://www.tradingview.com/script/srkc ... g-LuxAlgo/

Re: No Nonsense Forex - Indicators

Posted: Fri Mar 24, 2023 12:23 am
by Centaur
colorwind wrote: Thu Mar 23, 2023 8:21 am Hello Centaur:
can you please convert this from TradingView into mql5. thank you very much.

https://www.tradingview.com/script/srkc ... g-LuxAlgo/
Herewith as requested.

Out of interest, pine script is a much superior language as it automatically assume you make reference to the last calculated value of a defined series / array, something some pine script coders take for granted, and hence the really bad programming referencing. Case in point this indicator.

Let me know if you would prefer arrows, I always find arrows a faster / easier way of linking to an EA.

Re: No Nonsense Forex - Indicators

Posted: Fri Mar 24, 2023 2:43 am
by Centaur
Centaur wrote: Fri Mar 24, 2023 12:23 am Herewith as requested.

Out of interest, pine script is a much superior language as it automatically assume you make reference to the last calculated value of a defined series / array, something some pine script coders take for granted, and hence the really bad programming referencing. Case in point this indicator.

Let me know if you would prefer arrows, I always find arrows a faster / easier way of linking to an EA.
Herewith corrected indicator, error picked up on setting 1;1;1;close

Re: No Nonsense Forex - Indicators

Posted: Fri Mar 24, 2023 10:41 am
by colorwind
Centaur wrote: Fri Mar 24, 2023 2:43 am Herewith corrected indicator, error picked up on setting 1;1;1;close
very nice, thank you Centaur for the great work, you also add all the different price options. Can you please add ARROWS.

Re: No Nonsense Forex - Indicators

Posted: Fri Mar 24, 2023 4:49 pm
by Centaur
colorwind wrote: Fri Mar 24, 2023 10:41 am very nice, thank you Centaur for the great work, you also add all the different price options. Can you please add ARROWS.
Herewith as requested.

Re: No Nonsense Forex - Indicators

Posted: Sun Mar 26, 2023 10:15 am
by Centaur

Re: No Nonsense Forex - Indicators

Posted: Mon Mar 27, 2023 8:04 am
by Centaur

Re: No Nonsense Forex - Indicators

Posted: Mon Mar 27, 2023 1:41 pm
by sheezey
Centaur wrote: Sun Feb 19, 2023 6:23 pm My pleasure, just a correction, the Vortex is a trademarked indicator by Etienne Botes and Douglas Siepman. The calculations shown was different calculations picked up for an indicator known as "buy sell pressure". The concept is pretty much the same.

Please share the TV version you implemented it on, for interest sake.
I apologize I missed your reply. I'll be sure to activate notifications. I found your version helpful to eliminate some of the choppier areas. Interesting note in your correction, however, using a calculation from the buy and sell pressure indicator? Does that imply that the when using such calculations the Vortex can become more of an indicator for open interest?
Image
//@version=5
indicator(title = "Vortex Indicator", shorttitle="VI", format=format.price, precision=4, timeframe="", timeframe_gaps=true)
period_ = input.int(24, title="Length", minval=2)
VMP = math.sum( math.abs( high - low[1]), period_ )
VMM = math.sum( math.abs( low - high[1]), period_ )
STR = math.sum( ta.atr(1), period_ )
VIP = VMP / STR
VIM = VMM / STR
plot(VIP, title="VI +", color=#2962FF)
plot(VIM, title="VI -", color=#E91E63)

Re: No Nonsense Forex - Indicators

Posted: Mon Mar 27, 2023 5:15 pm
by Centaur
sheezey wrote: Mon Mar 27, 2023 1:41 pm I apologize I missed your reply. I'll be sure to activate notifications. I found your version helpful to eliminate some of the choppier areas. Interesting note in your correction, however, using a calculation from the buy and sell pressure indicator? Does that imply that the when using such calculations the Vortex can become more of an indicator for open interest?
Image
//@version=5
indicator(title = "Vortex Indicator", shorttitle="VI", format=format.price, precision=4, timeframe="", timeframe_gaps=true)
period_ = input.int(24, title="Length", minval=2)
VMP = math.sum( math.abs( high - low[1]), period_ )
VMM = math.sum( math.abs( low - high[1]), period_ )
STR = math.sum( ta.atr(1), period_ )
VIP = VMP / STR
VIM = VMM / STR
plot(VIP, title="VI +", color=#2962FF)
plot(VIM, title="VI -", color=#E91E63)
The Vortex reacts fast to minor movements in price action, whereas the Buy & Sell pressure indicator seems to resist some of these minor movements and acts only on intermediate to major movements. If the question is between the two which is a better indicator / calculation I'll say the Buy & Sell pressure indicator, then again this is very biased of me as the Vortex with the correct confirmation indicators can be very profitable. Not sure if this answers your question?

Thanks for sharing the Vortex TV code

Re: No Nonsense Forex - Indicators

Posted: Mon Mar 27, 2023 6:04 pm
by Centaur
global wrote: Mon Mar 20, 2023 9:49 pm Can you please convert Linear Regression Candles.mq5 and UT Bot Arrows.mq5 to mq4? Thanks.
Not sure if this will work but in the mt4 editor, create new custom indicator and copy paste the mt5 code into the newly created indicator, at the top just include the following statement: #property strict

I think mrtools will be the best to comment if this will work.