Coding Gap down strategy

Questions about MultiCharts and user contributed studies.
Trader_Precision256
Posts: 4
Joined: 25 Oct 2023

Coding Gap down strategy

Postby Trader_Precision256 » 25 Oct 2023

Hi everyone, very happy to join this community, im from Montreak, Canada, this is my my first post.

Im fairly new to coding and trading.

I'm trying to code a gap down strategy. On a 15 minutes timeframe, Sell if the open is lower then 99% of the close of yesterday, for example.

This is what i code and no trade happening, but it was compiled.

Any idea ?


inputs: a1(99);

condition1= open < (close[1] data2) *(a1/100) ;
if condition1 then begin
sell next bar market;


SETEXITONCLOSE;
end;

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Coding Gap down strategy

Postby TJ » 26 Oct 2023

See posts #1 & #2
viewforum.php?f=16


Return to “MultiCharts”