I want to use visual studio(VS) to debug an indicator, what I have to do now is:
change code in VS,
save file in VS,
open Ninjascript(NS) Editor,
click on indicator code,
hit compile,
wait 10 seconds for audio confirmation of completion,
switch to chart with indicator,
press F5 to refresh chart indicators
At this point I should see change from new codes, but just about 80% of the time. The remaining 20% of the time, the change is not reflected on chart, and I need to unload and reload indicator from/to chart. Sometimes I need to restart NT completely for new code change to show on chart.
Question 1,
Could you tell me I am doing it wrong, and there is a much faster way to debug from VS?
I tried to rebuild solution inside VS, but it never gets reflected on NT chart. Only compile from NS editor works it seems.
Question 2,
Since NT chart is not updating at times, I want to find the compiled indicator file and manually delete it, so I can make sure the new version will be used. Could you tell me where that compiled file is located, and what action triggers NT to read the file again, instead of just loading old indicator codes from memory?
Thank you!
Comment