Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 07:28:32 +0000



Post From: Programming help-automate with spreadsheet-trigger when bar CLOSES above

[2023-09-14 13:44:04]
User120358 - Posts: 29
Back again..

=CROSSFROMABOVE(E3:E4,ID19.SG3@3:ID19.SG3@4)

E:E4 in my code here, is 'last' price, so it closes the trade on the close of a bar. To close the trade on just a touch of something, rather than bar close, would it be B3:B4 as the open? If that is correct, and I wanted two triggers at the same time, do I just add AND, and put both codes into L3?

=CROSSFROMABOVE(E3:E4,ID19.SG3@3:ID19.SG3@4)
=CROSSFROMABOVE(B3:B4,ID19.SG3@3:ID19.SG3@4)