- Topics: 62
- Replies: 503
- Posts: 565
The Optuma scripting language is not available in 7.5 but if you upgrade then these values can be calculated by the program. It may be possible to script like this:
G1 = GANNSWING(SWINGCOUNT=2, METHOD=Use Next Bar, USEINSIDE=False);
S1 = SWINGEND(G1);
CLOSE() < S1
where S1 is the swing start value 3 swings ago (assuming the current swing is up). In the example below S1 is 884.49, which matches the watchlist column being calculated by the script.
However, when the next swing down develops this low will then be 4 swings ago – S1 – and S1 will have a value of 910.50, thereby incorrectly triggering the exit when the close is below that value.
As such, I don’t think we’ll be able to automate this swing stop strategy using the scripting language.
- This reply was modified 3 years, 7 months ago by Darren.