Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 11:35:11 +0000



[Programming Help] - Spread Sheet trading study is not closing my position

View Count: 702

[2017-12-06 15:12:10]
User118960 - Posts: 16
Hi,

Putting my first steps into spread sheet trading and we developing a easy crossover buy study. My buy signal is working fine but the sell signal that I put into the N column is not triggering the stop loss.

My code is simple when the faster MA is crossing the slower Ma from above it need to close down the position before triggering my stop loss.

The code that i use for this in L3 is the following:
=AND( CROSSFROMABOVE( AA3:AA4 , AB3:AB4), $J$8 > 0)


I also adjusted the settings from the study it can close out positions based on alerts but no effect :-S

With kind regards
Kristof

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account