TylerYong
New member
I noticed certain Price Action pattern and would like to test out the strategy with the floating Pnl (like using the Strategy in the Strategies tab). But unfortunately, I couldnt write the code out nicely (even with the help of chatgpt). Hence, I hope to seek help from pro like you peeps.
The requirement:
Condition 1: the signal candle must be > 10% gain, meaning the close price / open price >= 10%
Condition 2 : signal candle' MACD value line >= the 0 line
Condition 3 (not sure if this is possible via coding) : the signal candle closing price must be above the highest point of the nearest 2 red candle.
Condition 4 (not sure if this is possible via coding) : the signal candle's volume >= sum of the volume of the nearest 2 red candle.
Buy at the open price when the conditions are met (meaning the next day after the signal candle).
Selling condition: sell at 5% profit or 5% stock loss.
Thanks & Regards
The requirement:
Condition 1: the signal candle must be > 10% gain, meaning the close price / open price >= 10%
Condition 2 : signal candle' MACD value line >= the 0 line
Condition 3 (not sure if this is possible via coding) : the signal candle closing price must be above the highest point of the nearest 2 red candle.
Condition 4 (not sure if this is possible via coding) : the signal candle's volume >= sum of the volume of the nearest 2 red candle.
Buy at the open price when the conditions are met (meaning the next day after the signal candle).
Selling condition: sell at 5% profit or 5% stock loss.
Thanks & Regards