Buy 1 Shares AT 133.133 Limit Not working
Forums › ProRealTime English forum › ProOrder support › Buy 1 Shares AT 133.133 Limit Not working
- This topic has 8 replies, 2 voices, and was last updated 1 year ago by ZeroCafeine.
-
-
04/03/2023 at 5:22 AM #212692
hi
I’m testing buy one share at limit price but it’s still not working, what I’m missing ? maybe need more coffee 😅
12345678910Defparam cumulateorders = false// LONGS & SHORTSIF BarIndex > 508 THENBuy 1 Shares AT 133.133 LimitENDIFIF LongOnMarket ThenSet Stop pLoss 12ENDIF– I want to buy after BarIndex > 508 : why not working ?
– I want to buy at 133.133 JPY : the program buy at 130.xxx JPY, Why ?Tks in advance for all your light 😊
04/03/2023 at 6:37 AM #212694The market price on March 24 at 20:00 was 130,719…
You want to buy now (Buy Limit 133.133) ABOVE the market price, so your Limit order turns into a Market order, and you buy for 130,731…
Buy Limit always BELOW the market price…
1 user thanked author for this post.
04/03/2023 at 6:53 AM #212695Hooo, tks you, so need more coffee 😊
how about barindex trade of 508, why the code buy before ?
04/03/2023 at 7:06 AM #212699What time do you think corresponds to BarIndex > 508…?
Time frame 15 minutes, 508 * 15 min = 7620 minutes (127 hours)…?
1 user thanked author for this post.
04/03/2023 at 7:42 AM #212701What time do you think corresponds to BarIndex > 508…?
Time frame 15 minutes, 508 * 15 min = 7620 minutes (127 hours)…?
Ok ok, may I answer my self and say the buy fonction it’s not compatible with BarIndex ?
04/03/2023 at 7:52 AM #212703You can use the BarIndex but for example in this way:
If IntraDayBarIndex = 10 then
Buy 1 contract at Market
EndIfThe “IntraDayBarIndex” resets itself every day so every day you buy when this BarIndex is equal to 10…
1 user thanked author for this post.
04/04/2023 at 10:24 AM #212774You want to buy now (Buy Limit 133.133) ABOVE the market price, so your Limit order turns into a Market order, and you buy for 130,731…
Tks you, so maybe this picture can resume the buy order, tell me if I m wrong pls ?
04/04/2023 at 8:58 PM #21280904/10/2023 at 1:22 PM #213064Tks you, I think I understand your pictures tks agin
I always try to understand the perfect execution of my orders
-
AuthorPosts
Find exclusive trading pro-tools on