Login Page - Create Account

Support Board


Date/Time: Fri, 04 Apr 2025 21:38:37 +0000



Post From: Spreadsheet Automated Trading: Targets and Stops

[2014-07-15 17:13:31]
Sawtooth - Posts: 4197
1) On the Trade Window Targets tab, choose Move To Breakeven for Stop >> Trail to Breakeven Offset Triggered, and set parameters. Check 'Use Attached Orders'.
https://www.sierrachart.com/index.php?page=doc/doc_AttachedOrders.html#MoveBreakevenForStop

2) Put your MA crossover flatten formula in J29. For close of bar, reference row 4, for intrabar, reference row 3.
Close of bar example:
=OR(AND(J8>0,AA5>AC5,AC4>AA4),AND(J8<0,AA5<AC5,AC4<AA4))
Intrabar example:
=OR(AND(J8>0,AA4>AC4,AC3>AA3),AND(J8<0,AA4<AC4,AC3<AA3))
where AA is the faster MA and AC is the slower MA.

3) In the spreadsheet study settings, set Cancel All Working Orders on Exit to Yes. This allows both spreadsheet exits and Attached Orders exits.
Date Time Of Last Edit: 2014-07-15 19:40:59