I created a QScript, that has reference bars set to '50'. After building the script, I can confirm this is set to 50 if I bring up the .conf59 file in notepad. EG:
Code: Select all
PLOT: BARSBACK: 50 SCALE: 1 UPDATE_EVERY_TICK: 0 HOTSPOTS: 0 INPUTS:
I am not doing anything weird in my QScript that I think would adjust this parameter. And I have never noticed this before for my other QScripts.
Some troubleshooting steps I tried:
* I tried cut-n-pasting the script contents to a brand new name of a file (with reference bars set originally to 50). This new file also goes to 110 after it is built and added to a chart.
* i have rebooted my PC; re-started Wave59.
* like I mentioned, i looked at the raw file to see if it was somehow corrupt. But that shows 50.
* I am going to try the QScripot debugger now... (So I will report back if I find anything.)
Any other thoughts?
EDIT: Solved thanks to Kenn! I recently made a change to incorporate a very large AMA hardcoded length to my script. I was using this as a basic, "trade with the general trend" idea. Unfortunately the rest of my script is highly dependent on the certain barsback size, so when my reference number of bars increased, it threw off the other bits and pieces of my calculations.