Entry too late after line cross
Forums › ProRealTime English forum › ProRealTime platform support › Entry too late after line cross
- This topic has 18 replies, 3 voices, and was last updated 5 years ago by Mike Boorman.
-
-
10/06/2019 at 3:30 PM #109413
This seems like the most simple coding possible, and yet I am vexed by it!!
Below is the code:
12345678910DEFPARAM CumulateOrders = False //Averagecrosslong= ExponentialAverage[8](close) crosses over ExponentialAverage[13](close)If Averagecrosslong THENBUY 1 PERPOINT AT MARKETENDIFSET STOP pTRAILING VLSTOPAnd now see the attached screengrab of where it actually enters. The entry is two-and-a-half bars after the line cross. Why does it not enter on the 20th or the 21st?
Thank you in advance 🙂
10/06/2019 at 3:32 PM #10941410/06/2019 at 3:35 PM #109416The image is there now. When I submitted it the first time it said “the site is experiencing technical difficulties” and then when I refreshed it posted it without the added image. Anyway, it’s now edited and up there…
10/06/2019 at 3:39 PM #10941710/06/2019 at 3:42 PM #109418This is very similar to the Issue on the link below … what is going on??
No wonder we are making no money!? 🙂
I think it is best to keep it as simple as possible so PRT Support understand at a first read what are the symptoms?
10/06/2019 at 3:53 PM #10941910/06/2019 at 3:58 PM #109421This is very similar to the Issue on the link below
What link? You did not include one.
10/06/2019 at 4:08 PM #10942210/06/2019 at 4:21 PM #109423Am I right in saying that this on Wall Street is more “right”? (i.e. it’s executing one-and-a-half bars after the cross)
Could this maybe be chart-specific?
10/06/2019 at 4:37 PM #109425It is difficult to see in that image exactly when the cross occurs. If you hover over each bar and check the values for the averages then you can confirm when the fast one flips to a higher value than the the slow one. This is your crossing bar as at the open it would have been fast under slow and at the close slow under fast. The buy should be at the open of the following bar.
10/06/2019 at 5:24 PM #109428I’ve done the hover and can confirm that Wall Street is performing as it should be but Bitcoin is not. Interesting!
Is there anything you an suggest I do here?
10/06/2019 at 5:49 PM #109429Is there anything you an suggest I do here?
Send a report via the platform and give a link to this thread in the description.
10/06/2019 at 5:55 PM #109430What link? You did not include one.
A quote is like a link … you can get to the Topic I was referring to by clicking on the top of the page after clicking on the name in blue … I know you know this but others may not!?
A link is probably better and more direct! 🙂
10/06/2019 at 6:03 PM #109431Vonasi wrote: What link? You did not include one.
Oh yeah I see what you mean now … I screwed it up!
Here … I meant this Topic is surely similar PRT Issue to the Topic below??
https://www.prorealcode.com/topic/backtest-wrong-results-in-hourly/
Too many beers I think for me!!?? Actually none!! hahahaha
10/06/2019 at 8:16 PM #109438How would I “send a report via the platform”?
-
AuthorPosts
Find exclusive trading pro-tools on