Market price between 2pm and 10pm
Forums › ProRealTime English forum › ProOrder support › Market price between 2pm and 10pm
- This topic has 19 replies, 3 voices, and was last updated 8 years ago by gekko_80.
-
-
09/19/2016 at 9:43 AM #1326809/19/2016 at 11:10 AM #13278
You need to store the Close value everyday at 10pm in a variable. Then test if the price were above and below the highest high and lowest low of today Close between 2pm and 10pm.
If you have trouble coding it, please ask gently 🙂
09/19/2016 at 11:52 AM #13283Merci Nicolas!
First of all: I was surfing through this forum and i really have to say that u r doing a great job helping everybody out! Thanks for your effort!
Well, how can i store a special market price at a certain time in the past in a variable?
all i know e.g. is: “VariableXY” = Close(10)
but that will store the close price of the 10th bar in the past….
should i count the bars till i will reach the 10pm bar of yesterday 😉
Cheers!
09/19/2016 at 5:00 PM #1330809/19/2016 at 5:08 PM #13310Maybe or maybe not ..!
Firstly, store your Close at 10pm:
123if time=220000 thenxy = closeendifThen, test if this price is met between the today’s high and low (from 7pm to 22pm):
12345if time>=140000 and time<220000 and xy>=Dlow(0) and xy<Dhigh(0) thenmytest = 1elsemytest = 0endifand you are good.
09/19/2016 at 5:42 PM #13318Maybe or maybe not ..! – Haha…. 😉
thank you Nicolas!
i will try to move on from here….trying to implement my trading strategy that i am using manually into an automated one….
sorry for my newbie questions….i started coding with PRT yesterday….
if anybody has some mathematical / statistical questions just let me know about it….that is my metier….
once more: Thank you Nicolas!
09/19/2016 at 7:26 PM #13322Why is this code not buying/selling any shares?
if time = 220000 then
c = close
endif
if time>=220000 and time<=140000 and close <= c-20 then
buy 1 shares at market
set target pprofit 20
endif
if time>=220000 and time<=140000 and close >= c+20 then
sell 1 shares at market
set target pprofit 20
endif09/19/2016 at 9:22 PM #1333009/19/2016 at 11:37 PM #1333109/20/2016 at 1:35 AM #1333309/20/2016 at 5:44 PM #1339709/20/2016 at 6:14 PM #1339809/20/2016 at 7:31 PM #1340309/25/2016 at 1:52 AM #13689Aloha!
i am trying to upgrade teh indicator by declaring the exact hourly time frame in which the last days closed is reached (or not).
all i need to finish the job is a time function code for the last hours LOW and HIGH, could not find it in the manual…..and hhigh and hlow are not working out actually.
Would appreciate your help….thx
TC,
Gekko
09/25/2016 at 8:14 AM #13690 -
AuthorPosts
Find exclusive trading pro-tools on