antoniocosentino / Chasm

A cAlgo bot experiment, using Gap Trading Strategies
8 stars 1 forks source link
calgo ctrader spotware trading

Chasm 📈

A cAlgo bot experiment, using Gap Trading Strategies

How does it work?

The BOT accepts 6 parameters:

Bot Logic

The bot is checking for the closing price of previous day and comparing it with the opening price of current day. If opening price is bigger than yesterday's close then we will have a GAP UP. Otherwise, if today's opening price is lower than yesterday's close, then we will have a GAP DOWN. If none of this scenarios is happening, the BOT will stay on standby for the current day.

If the BOT detects a GAP it will behave according to the configuration:

GAP UP + Long

One hour after the market's opening time, it will open a LONG position and set a take profit calculated on the value of the Diff Ticks parameter, added to the max price reached today.

GAP UP + Short

One hour after the market's opening time, it will open a SHORT position and set a take profit calculated on the value of the Diff Ticks parameter, subtracted from the min price reached today.

GAP DOWN + Long

One hour after the market's opening time, it will open a LONG position and set a take profit calculated on the value of the Diff Ticks parameter, applied to the min price reached today.

GAP DOWN + Short

One hour after the market's opening time, it will open a SHORT position and set a take profit calculated on the value of the Diff Ticks parameter, subtracted from the min price reached today.

Stop loss is always calculated using the value of LONG Trailing Stop or SHORT Trailing Stop (%) parameters, depending on the actual scenario.

The n. of contracts is defined in the "N.Contracts" parameter.

Backtesting Screenshot

Backtesting Screenshot