Hello,
How would I structure the syntax to Buy on the open bar of Sunday night and Sell the Close of Monday?
I don't need the actual system set up, just how would I organize the syntax.
Hello,
How would I structure the syntax to Buy on the open bar of Sunday night and Sell the Close of Monday?
I don't need the actual system set up, just how would I organize the syntax.
That might depend on what periodicity you're testing...and are you using this just for backtesting...or for live trading via the TSYS indicator?
Chad- What's going on sir!?!
I am testing it on a 24-hour Daily chart.
I am just doing the backtest now, I do plan to start using the systems live, but I think I need to get my skill level up first.
I have tried these multiple ways, so I really interested to see the correct way to do it.
I have been doing all the RTL video's over and then following along in other videos.
Hi Josh,
You say you are testing on a 24-hour chart. So you're adding the Trading System indicator to the chart? And the periodicity is set to "Daily"? Or is it "Time Per Bar: 1 Day"? (the later allows the bars to reflect the session.
But regardless, you can use the POS token with "Trading Session of Week" and then use...
POS = 1
with rule price Open to get in at the open of 1st session of week....and...
POS = 5
with rule price Close to get out at close of Friday.
But the answer changes if you are testing intraday data and not daily bars.
I have it set to Daily bars. Full Session
I use the syntax
Pos = 0 ( this is for the open of Sunday)
Pos = 1 (this is for the Close of Monday)
I have selected,
POS = 0
Rule price = Open
Intra Bar = checked
Periodicity = Daily
POS = 1
Rule Price = Close
Intra bar = Checked
Periodicity = Daily
using the syntax POS = 0 and with just the Action screen selected I get
When I run the test this way it buys on Friday 10-16-2020 and sells on 11-18-2020
I have tried these multiple ways to test. I can not get 1 of them to buy on Just a particular day of the week
I have tried
POS = 0 and Open = OPEN
POS = 0 AND OPEN > OPEN.1 OR OPEN < OPEN.1
POS =0 AND (OPEN > OPEN.1 OR OPEN < OPEN.1)
Basically, I just mirrored the open syntax, with the close and Change it from POS = 0 to POS = 1
I have tried with intra-Bar checked and un-checked.
Add the Position indicator to a daily chart to inspect exactly what values you are getting on each bar. You probably want to use POS = 1. Although the 1st bar of session starts on Monday, it ends on Sunday, and bars are timestamped with the date/time they end.
and I'm not sure why you'd have the "and Open = OPEN" or any of those open conditions, but they are not needed. You choose the Rule price at the top right of backtesting widnow when adding or editing rules.
LMAO- I don't know why I chose all those other syntax's, you told me to see what it does. Seriously, if you knew how many things, I have tried, you probably doubled over laughing, screaming no seriously, I can't take it anymore.
I am going to scratch the pos = 0 and just focus on the pos =1
In the near future, I like to get some patterns to be automatically identified. I have the data quantified. Basically using the template from thepatternsite.com
But for now Chad,I am going to make it my mission in life to know more about the Pos indicatior then you do lol
Sure. Let me know if yoy need help coding those patterns. Just give me an example and I'll help out.
Cough*** I got it to work*** Cough
the pos = 0 was causing me trouble.
I am going to go drink now until I forget that we ever had this convo.
Thanks, Chad.