Indicator Tester ok but Trades of Chart indicator view fail
1 replies
Antonio Belmar Sánchez
1 year ago #289350
Hello,
I’m programming an indicator published on TradingView in both MQL4, MQL5, and SQX. MQL4/5 give me the same output values as TView, so they’re programmed correctly. The problem I’m having with SQX is that when I run an “Indicator Tester” with a CSV file created with MT4 with 11,000 lines, Indicator Tester tells me that only the last line of the CSV is incorrect (Failed – 1 difference), so I understand that the rest of the 11,000 lines are correct. (If I delete that line from the CSV, it still tells me the last line failed.)
Using Algowizad, I create a simple strategy with this new indicator, activating “Store Chart Data” so I can see how the indicator is drawn in “Trades of Chart.” To my surprise, the indicator is similar but scaled differently, so it’s not correct.
I’ve modified the code in a thousand ways, but I can’t get it to draw correctly, and in every case, Indicator Tester tells me the same thing: everything’s OK except for the last line.
I don’t know where to continue, so I’m asking for help to see if you can guide me because I’m not sure I’m the one writing the code incorrectly.
0
Antonio Belmar Sánchez
1 year ago #289405
I have attached source code for the LazyBear wavetrend indicator. Compiles but does not give the same output as TradingView’s original Wavetrend. Does anyone see the error in the code that causes it to not give the same output?
0
Viewing 1 replies (of 1 total)