Absret111
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: April 16th, 2022

Simple Turnaround Tuesday strategie

Hi there,

I came across this Turnaround Tuesday trading strategy. Since I'm a beginner with TradingView so please could someone tell me how to code this in Pine Script?

Strategie:
When to open a position?
If the price is below the 34-day moving average on Monday, a long position will be opened at the market price on Monday evening (on the close).


When will the position be closed?
The position will be closed at the market price on Wednesday morning (on the open).

Thanks in advance

Shenpai
Pine Script Rookie
Pine Script Rookie
Posts: 6
Joined: April 10th, 2022
Contact: TradingView Profile

Re: Simple Turnaround Tuesday strategie

I think there are two problems depending on what you want the strategy use for.

I tried and researched a bit. When you want to backtest the strategy it doesnt seem to work, because the backtesting tool seems to fill orders just a closing price but not at opening price.

If you try to actually use the script you will have problems to trade when the market is closed, so your entry should not work.

processingclouds
Pine Script Master
Pine Script Master
Posts: 115
Joined: January 30th, 2022

Re: Simple Turnaround Tuesday strategie

Hey,

Your request is very similar to what this is doing
Buy Monday Exit Tuesday with StopLoss and TakeProfit
https://www.tradingview.com/script/dT5b ... ke-Profit/

Check it out and if you still need help creating the above, let me know.

Return to “Pine Script Q&A”