Can ‘Comment’ in Buy Order contain the value of a variable?
2 replies
daveM
10 years ago #115277
I would like to see the value of an indicator at the time an order is placed….
Can “Comment” be used for that……
if so, please, type an example……
I think I can insert a ‘Print’ statement in the code, just wondered if Comment can do the same.
Thanks
daveM
0
Tomas Matejka
10 years ago #137923
Hello, you need to do two things:
- Store indicator value into a variable using Assign value
- Use Log to journal in your trading condition to see the value during backtest, live market
0
daveM
10 years ago #137927
Ok, Great… thank you.
That is going to be a great debug tool!
It took me a couple tries to get it to work, but now I think I can use it to my advantage
Thanks again!
0
Viewing 2 replies - 1 through 2 (of 2 total)