The attached file has several problems I can not solve. Lots of debug points are set.
I am trying to put some registers on the screen to run "backtesting like" values in real time on a complex chart with a simple strategy. But, not of my drawText (near bottom of Main) commands seem to put anything on the screen, even though the debugger shows actaual values for those variables as the program runs.
Worst, after careful examination of the debug run in Formula Output Window, I noted that the "Short Trades" were accurate, but the "Long Trades" were accurate in absolute value, but never recorded a correct "minus" sign, when the long trade lost money.
So, I cannot seem to "subtract" correctly.
Also, I tried hard to figure out how to place all the on chart text "RELATIVETOBOTTOM", rather than relative to the cursor. but could not find sufficient documentation. The EFS Functions Library talks aboutthe cx, and cy options, but does not give a good example for RELATIVETOBOTTOM. SO, I need help there, or a good example.
I can not seem to get cumulator variables to work either. There is a variable , nTotalDayPOints, that is supposed to simply add up the "nNetPoints" made on each trade, as the day goes along. But, it does not seem to "add". Just stays at zero.
Am I missing something here, or do regular arithmetic and variable assignment operators simply not work, while in "backtesting" or a strategy mode" Do, I need to strip all the "stategy commands" out of this program, in order for it to function normally, or have I just made an unusually large naumber of simple programming errors.
Would appreciate it if you would take a look. I hate having to send all these lengthy emails, when a good old fashioned phone call to tech support would have gotten me on my way two days ago, but this is how it is done these days. I am a trader, not a programmer, trying my best to made a few simple things work right.
Will appreciate any help.
See attached file.
thx,
Tilmon
I am trying to put some registers on the screen to run "backtesting like" values in real time on a complex chart with a simple strategy. But, not of my drawText (near bottom of Main) commands seem to put anything on the screen, even though the debugger shows actaual values for those variables as the program runs.
Worst, after careful examination of the debug run in Formula Output Window, I noted that the "Short Trades" were accurate, but the "Long Trades" were accurate in absolute value, but never recorded a correct "minus" sign, when the long trade lost money.
So, I cannot seem to "subtract" correctly.
Also, I tried hard to figure out how to place all the on chart text "RELATIVETOBOTTOM", rather than relative to the cursor. but could not find sufficient documentation. The EFS Functions Library talks aboutthe cx, and cy options, but does not give a good example for RELATIVETOBOTTOM. SO, I need help there, or a good example.
I can not seem to get cumulator variables to work either. There is a variable , nTotalDayPOints, that is supposed to simply add up the "nNetPoints" made on each trade, as the day goes along. But, it does not seem to "add". Just stays at zero.
Am I missing something here, or do regular arithmetic and variable assignment operators simply not work, while in "backtesting" or a strategy mode" Do, I need to strip all the "stategy commands" out of this program, in order for it to function normally, or have I just made an unusually large naumber of simple programming errors.
Would appreciate it if you would take a look. I hate having to send all these lengthy emails, when a good old fashioned phone call to tech support would have gotten me on my way two days ago, but this is how it is done these days. I am a trader, not a programmer, trying my best to made a few simple things work right.
Will appreciate any help.
See attached file.
thx,
Tilmon
Comment