Resources and libraries for programmers from MQL4 EA to PRT
Forums › ProRealTime English forum › ProOrder support › Resources and libraries for programmers from MQL4 EA to PRT
- This topic has 45 replies, 5 voices, and was last updated 7 years ago by
Nicolas.
-
-
09/28/2017 at 6:11 PM #4771209/28/2017 at 6:17 PM #4771409/28/2017 at 6:19 PM #4771509/28/2017 at 7:07 PM #47718
Get used to it. 🙂 It is in real and in backtest like this.
To make it even better PRT lacks command to for example sell on the close. If you run a strategy on daily bars this is especially annoying. Any market order you give will be executed at the open of the next candle.
09/28/2017 at 7:15 PM #4771909/28/2017 at 7:42 PM #4772009/29/2017 at 7:11 AM #4773909/29/2017 at 8:09 AM #47751You can use the Graph function.
https://www.prorealcode.com/documentation/category/probacktest/page/2/
1GRAPH myvariable AS "my variable"09/29/2017 at 10:18 AM #47785Hi juanj
I have a problem with your ichimoku formula:
TS = (highest[T](high)+lowest[T](low))/2 //Tenkan-Sen
KS = (highest[I](high)+lowest[I](low))/2 //Kijun-Sen
CS = close[I] //Chikou-Span
SA = (TS+KS)/2 //Senkou-Span A
SB = (highest[K](high)+lowest[K](low))/2 //Senkou-Span Bthe results differ too much from those from the PRT ichimoku indicator. In particular note CS’s position regard to kumo:
PRT your
SA[3] 1.17841 1.17908
SB[3] 1.17854 1.17908
CS[30] 1.18022 1.17765is there a way to see the ichimoku code of the prt indicator?
Maybe I’m wrong about something..
09/29/2017 at 10:33 AM #47789Unfortunately, the code for the built-in Ichimoku is not available.However we know Chikou-Span is calculated as the current close 26 periods back, thus my calculation should be correct.
However we know Chikou-Span is calculated as the current close 26 periods back, thus my calculation is correct.
It could be that the difference is because of price differences between bid, ask and mid in ProOrder vs the Chart. Not always sure what price ProOrder uses in calculations.
09/29/2017 at 10:38 AM #47790ok, I have done a request if they give the code of the internal PRT indicator, if they don’t give it, can you write an ichimoku indicator so in the chart the EA has the same informations?
Otherwise, is there a way to take values from the internal indicators? In MQL4 there are somo instructions to do so, I don’t know in PRT..
09/29/2017 at 11:47 AM #4779609/30/2017 at 4:36 PM #4788210/02/2017 at 9:16 AM #47969Ok, the issue with the indicator is solved, now I can optimize the EA behaviour.
When we open an order, I think that an indexed number is assigned to it like in a relational database. Is there a way to read this number? In practice the EA should be able to check if its order has been closed.. from an external event to the EA too.
10/02/2017 at 10:08 AM #47976The current bar is stored in BARINDEX. The index of the last trades you can refer to with TRADEINDEX(n). With trade index 0 being the last trade.
The last part of what you wrote I didn’t understand. If a position of a strategy is closed by an external event (for example user interference) it will be stopped completely.
-
AuthorPosts
Find exclusive trading pro-tools on