Need some HELP converting script "Turtle Original V3.1" in WL4 (see old site) to WL5. Can one of the programers in the community convert this code?
Size:
Color:
see:
CODE:
Please log in to see this code.
Size:
Color:
Thanks a lot!
Size:
Color:
Although it's not a problem in this case, just a word of caution about creating trades after checking the Positions.Count. To remove all doubt about peeking, it would be better to write the block of if (ActivePositions.Count == N) statements using "else" or a switch statement.
CODE:
Please log in to see this code.
As I said, in this case it's not a problem due to the way the statements are ordered and the fact that the trading signals can only
add another active Position.
Size:
Color:
To whomever cares: there is a subtle logic error:
CODE:
Please log in to see this code.
This way, the LS/SS variables are always taking into account the last active position. The appropriate change was applied to this Strategy's page in our WL5 Wiki.
Size:
Color: