Problem with custom indicator Murray Math Lines
14 replies
Wouter
8 years ago #114682
Hello,
I am currently struggling to make eawizzard react on one of my newly added custom indicators.
I have al my indicator buffers correctly linked to their output’s and it draws everything correctly if I visually backtest within the strategy tester. Unluckily it doesn’t open any trades and neither shows any price data in it’s buffers as shown in the screenshot made of the chart data window.
KInd regards,
Wouter Vermeersch
tomas262
8 years ago #135284
What testing precision do you use in MetaTrader? Have you used ‘every tick’?
Wouter
8 years ago #135285
tomas262
8 years ago #135286
Send me the indicator if you can so I can do testing. What could also help is to set bars ago to 0 instead of 1.
Wouter
8 years ago #135287
If you mean the shift, then I’ve also allready tried that… Once I’m at home I’ll send it to you.
Verzonden vanaf mijn iPhone met Tapatalk
Wouter
8 years ago #135290
Here is the indicator code
tomas262
8 years ago #135325
The problem seems to be in comparison between Bid and indicator value. Bid is 5 decimals while indicator can be 8 decimals or so. This way they will never match. Use ROUND function in Wizard to round the indicator value to 5 decimals. Then it should match the bid. See screenshot attached.
Wouter
8 years ago #135330
I’ll go try that right away, the round function won’t be difficult to find I presume ?
Verzonden vanaf mijn iPhone met Tapatalk
Wouter
8 years ago #135332
This actually made it work,
Is there also a function which recognizes the difference between rounding to 3 or 5 decimals in case of yen pairs? or should I just make a separate EA for the yen pairs with fixed rounding to 3 decimals?
I am very grateful for you’re excellent support thomas,
In return I would like to stay around a little longer and share some of my knowledge if needed.
tomas262
8 years ago #135338
You can set a varible roundDecimals (int type) and use it in Wizard rounding function. This way you can change rounding as your EA input parameter. When you load your EA up on chart you will adjust EA parameter for selected currency pair
Wouter
8 years ago #135339
Yes that’s also a possibility, kind of hoped on the existence of an automatic function.
Verzonden vanaf mijn iPhone met Tapatalk
m0rtal
7 years ago #140542
I’m also having problems importing data for custom indicator:
This happens during automatic import procedure.
Any idea how can I fix this?
tomas262
7 years ago #140598
Hello,
if you have any issues using the automatic import in SQ I suggest to switch to manual method which works well
m0rtal
7 years ago #140656
There’s no information on how to use manual import method in SQ help. Some directions?
tomas262
7 years ago #140662
Hello,
look at the PDF guide page 99 https://strategyquant.com/licenses/d?code=squg
Let me know if any problems with importing
Viewing 14 replies - 1 through 14 (of 14 total)