count value of bricks
Forums › ProRealTime English forum › ProOrder support › count value of bricks
- This topic has 11 replies, 2 voices, and was last updated 5 years ago by immo_vienna.
-
-
05/17/2018 at 11:55 AM #70697
hello pro’s!
if i have a long or short position i want to code:
if longonmarket then
“the last brick has to be greater then the last brick before” and
“the next brick hast to be greater then the last 2 bricks before”
“… 3 bricks before”
and so on….
is there any option to do that?
thx guys!
05/17/2018 at 3:47 PM #7071505/17/2018 at 5:03 PM #70721sorry i mean just normal candlesticks… brick = candle
sorry
05/18/2018 at 7:09 AM #7073505/18/2018 at 8:40 AM #70739sorry for my bad explanation…
it means “higher price” – this is what I want to do:
- if longonmarket the next candle must be higher (in price) than the “open order” AND
the next candle must be higher (in price) than the last candle AND
the next candle must be higher (in price) than the last 2 candles (always take the last candles (1+1+1+1+…) since the open order) - the last (f.e. 10 candles) must be 1/4 higher (in price: open order + 1/4) than the last candles since open order – otherwise sell at market
hope u can understand my thoughts now.
thx nicolas for helping me!05/18/2018 at 1:45 PM #70773Sorry, still don’t understand what you mean.
1/ So each time a new candlestick close we must ensure that its price is higher than the last X candles Close since the open of the order (and X is incrementing continuously)?
2/ What “open order + 1/4” state for?
Do these 2 points must be tested at the same time to sell the buy order?
1 user thanked author for this post.
05/18/2018 at 2:09 PM #70779ad 1) exactly!
ad 2) thats just a part of future – not as important as step 1! i would be greatful if u could help with step 1!
thank you so much nicolas for helping me here!
05/21/2018 at 3:33 PM #71016could this be done anyhow?
05/26/2018 at 10:06 AM #71372i am thinking about something like
123if longonmarket and data < tradeprice(tradeprice+1) thensell at marketendif05/26/2018 at 12:07 PM #71389Sorry for not answering since my last post..please remind me to have a look to your question next week.
1 user thanked author for this post.
05/28/2018 at 8:38 AM #71479Could you test this snippet about your first query?
12345678910// each time a new candlestick close we must ensure that// its price is higher than the last X candles Close// since the open of the order (and X is incrementing continuously)if longonmarket thenperiod = max(1,barindex-tradeindex)if summation[period](close>close[1])<>period thensell at marketendifendif1 user thanked author for this post.
05/28/2018 at 9:25 AM #71495thats exactly what i was looking for! that’s my basic for some codes now! Thank you so much for your help and ur help for everyone here!
- if longonmarket the next candle must be higher (in price) than the “open order” AND
-
AuthorPosts
Find exclusive trading pro-tools on