Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 15:00:22 +0000



Post From: Wanting to use crossfromabove twice

[2019-11-03 23:33:02]
Bubba - Posts: 30
Hello Tom
I'm wanting to check to see if j48 last entry fill price is less than X, amnount is minus or plus ticks. If a sell it should be less than the fill price, buy would be greater than fill price.
So if on a sell order the entry price is less than (X or would be E3:E10) for example it would be going in the correct direction, nothing should happen. if on a sell price X is positive or higher than the sell entry price by (X or E3:E10) it should close trade.

=IF($J$48<E3:E6),OR(CROSSFROMABOVE(ID4.SG1@3:ID4.SG1@6,ID3.SG1@3:ID3.SG1@6), CROSSFROMBELOW(ID4.SG1@3:ID4.SG1@6,ID6.SG1@3:ID6.SG1@6))
I'm getting syntax errors, so not sure if I writing incorrectly or it just can't be done.

Thanks
Mark