Programming error with target and loss in percentage?
Forums › ProRealTime English forum › ProOrder support › Programming error with target and loss in percentage?
- This topic has 6 replies, 3 voices, and was last updated 6 years ago by
Nicolas.
-
-
09/07/2019 at 7:16 AM #106744
Hello.
A little question, how is that possible? Where is the mistake?
This is what I wanted to program.
I open a position at 09.00 o’clock and close the position at 17.00 o’clock.
The average of a should be greater than the average of b.
The SL is at 1%, the TP is at 1.5%.
Short - nine to five12345678910111213141516171819TD = Opendayofweek = 1 or Opendayofweek = 2 or Opendayofweek = 3 or Opendayofweek = 4 or Opendayofweek = 5TT = time = 090000c1 = Exponentialaverage [1] (close)c2 = Exponentialaverage [2] (close)IF TD and TT thenIF c1 > c2 thensellshort at marketEndifEndifIF shortonmarket and time = 170000 thenexitshort at marketendifset stop %loss 1set target %profit 1.5Applied to the Dax I have the following results. See screenshot. In the evaluation, gains of over 700 points, sometimes 900 points are displayed. Which is actually not possible, with TP of 1.5%.
What have I done wrong?
lg maik
09/07/2019 at 8:01 AM #10674709/07/2019 at 11:11 AM #10676009/07/2019 at 11:37 AM #10676409/07/2019 at 11:44 AM #106766f1_maik – Welcome to the forums. I see that this is your first topic and posts. There are some basic forum rules – one of which is to give your topics meaningful titles otherwise we just end up with thousands of ‘Can you help?’ or ‘Programming error’ topics. Your title has been edited to something more meaningful. please try to use better topic titles for future topics. 🙂
1 user thanked author for this post.
09/23/2019 at 9:54 PM #10829309/24/2019 at 7:47 AM #108312 -
AuthorPosts
Find exclusive trading pro-tools on