Attachments forums

List of attachments posted on this forum.


All files on forums: 135626

Re: Already Converted TradingView Indicators to MT4 Indicators

Jackson Doh, Tue Dec 06, 2022 11:31 am

kvak wrote: Tue Dec 06, 2022 10:22 am Hello, Interesting indicator...... I corrected some things whats I know.
You use old averages function, no strict and most of them have array error. I replace some strict averages functions.
Corrected mtf. Look on Icustom and interpolation. old version freez terminal.
Corrected button, old version not delete lines....
You forget line 342 to activated autowidth for candles.

For plotpoint havent idea for now, but I will look on it....
Image
Hey kvak,
I can't believe you posted this today! I was only working this file yesterday. So glad you fixed the array out of range issue on the EMA derivative averages as couldn't work out how to fix it. I saw the MTF was crashing the terminal with MaType amongst other references missing from the iCustom.

I looked at the original from TV and thought the candles weren't printing on the band cross like they maybe should, so I changed the code around line 540 to 580 and replaced with this:

Code: Select all

state[i] = (i<(Bars-2) ? (Close[i]>HOTT[i]) ? 1 : (Close[i]<LOTT[i]) ? -1 : ((Close[i]>LOTT[i]) && (Close[i]<HOTT[i])) ? 2 : state[i+1] : 0);
I just hashed out the original codes and got rid of the "state [ i ] = -2". They can be easily reinstated. I also added alerts to this.


Please download the indicators 2 posts below. The MTF wasn't working here. Sorry


On a separate note, thanks for covering the G Channel mtf request. I'm still learning mtf so used diffmerge with your update against the original to help understand it better.
Cheers, JD.
All files in topic