help need for automated trade : leveraged products
Forums › ProRealTime English forum › ProOrder support › help need for automated trade : leveraged products
- This topic has 20 replies, 3 voices, and was last updated 3 years ago by amalds.
-
-
07/02/2020 at 9:11 PM #138168
helo ,
my backtest is excellent on the future cac40
but when i run on the other screen , leveraged product no sell or buy signals .
note : the sell and buy signals comes from the cac40
its made for turbo’s speeder … on index
many thanks
07/02/2020 at 9:24 PM #13817207/02/2020 at 9:34 PM #13817407/02/2020 at 9:40 PM #138177the leveraged product goes up and down with the index
Sounds like you have opened 1 trade and that single trade has never closed.
Without your code we are guessing?
07/02/2020 at 9:51 PM #13817907/02/2020 at 9:58 PM #138183the problem –> is that i create buy and sell signals on the index future window
( leveraged products have not enough data for sell and buy strategy )
but i can not combine the signals in the other window .
–> buy sell signals from chart index –> i buy sell the leveraged product
07/02/2020 at 10:08 PM #138185I got it going for you.
I’m not saying it is the best … I just got it trading so you can move forward.
Use the tool below to check the difference in code.
https://www.diffchecker.com/diff
07/02/2020 at 10:52 PM #13818907/03/2020 at 7:53 AM #138206It works for me with some adaption in the code since it uses variables that don’t exist.
1234567891011121314151617181920// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsignored, ignored, ignored, ignored, ignored, indicator1, ignored, ignored, ignored = CALL "CCI and RSI same chart"c1 = (indicator1 CROSSES UNDER 15)indicator2, ignored, ignored = CALL "PRC_Pivot Point Supertrend"[2, 3, 10, 0, 0, 0](close)c2 = (indicator2 >= close)IF c1 AND c2 THENBUY 10 SHARES AT MARKETENDIF// Conditions to exit long positionsignored, ignored, ignored, ignored, ignored, indicator4, ignored, ignored, ignored = CALL "CCI and RSI same chart"c3 = (indicator4 CROSSES UNDER 90)IF c3 THENSELL AT MARKETENDIF07/03/2020 at 8:33 AM #138216good morning ,
i did another back test and tis is the result = > it is not the same as the index
the time from the leveraged = the last buy time
the market price is update every tick
the chart update after there was activity -> buy en sell
07/03/2020 at 9:28 AM #13822507/03/2020 at 9:33 AM #138226Are you sure you posted the same code that you are testing?
Reason I ask above, is because I had to make the same changes that Nicolas made because the code would not even run in backtest due to an Indicator that does not exist, also a typo error.
So how are you running the code you posted when it would not run on my Platform or Nicolas without 2 x changes.
07/03/2020 at 10:00 AM #138230these are the indicators that i use
cci and rsi on same chart + prc pivot = is running on the chart
settings buy en sell :
buy signal ==> mcc cross under 20 ( from cci chart ) + prc pivot point
sell => mcc cross over 90
thats all
on chart index = works
on chart leveregad product = dont work
( the charts are seperated windows not linked to each other )
07/03/2020 at 10:48 AM #138246If you don’t answer my specific questions then I can’t see how I can help you?
It is frustrating for me to have to work out … why is he saying that?? 🙂
I don’t know what you mean by chart leveregad product ? Maybe somebody else does??
If you don’t understand my questions, then use the google translator to convert my questions to your native language.
Then do the reverse to answer back on here.
07/03/2020 at 11:53 AM #138261on chart leveregad product = dont work
If it doesn’t work … how come it is showing an equity curve … see red arrowhead on attached?
-
AuthorPosts
Find exclusive trading pro-tools on