Losser memory.
Forums › ProRealTime English forum › ProOrder support › Losser memory.
- This topic has 15 replies, 6 voices, and was last updated 4 years ago by Fran55.
-
-
04/03/2020 at 5:56 PM #12453904/03/2020 at 5:57 PM #12454004/03/2020 at 5:58 PM #12454104/03/2020 at 6:27 PM #12454604/03/2020 at 6:32 PM #12454804/03/2020 at 6:42 PM #12454904/03/2020 at 8:08 PM #124561
@Fran55 it be easier if you use the google translator as we find it difficult to understand what you want help with?
¿será más fácil si utiliza el traductor de Google, ya que nos resulta difícil entender con qué quiere ayuda?
04/03/2020 at 9:13 PM #12456204/03/2020 at 9:49 PM #124566Okay.
The robot has opened position at dax at 9150, and the position has been losing.
I want it to no longer open position between 9125 and 9175 from now on.
But without touching the code again … you have to program in advance that when you lose in a position, you will not enter the market in that price range again.
Thank you.
04/04/2020 at 9:04 AM #124576I can’t see where this is going as to avoid a Price level that loses is not logical as next time the same Price level could be the entry to the biggest winning trade for days??
But to move this on … is below what you need?
Not Tested
1234567If onmarket and Positionperf < 0 ThenLossTrade = TradePriceEndifIf CondBuy and NOT LossTrade Then //CondSellShortBuy at Market // SellShortEndif04/04/2020 at 9:21 AM #124579With v11 you could use arrays to store all price levels where a loss has been suffered, but whenever the TS is stopped, all those data are lost!
It’s not a price level that will make you win or lose, it’s the logic on which the TS is built and…. the fact that losses are an essential part of trading!
It’s like happiness and sadness, no one can be without the other.
Try to make happiness prevail, though! 🙂
04/04/2020 at 12:16 PM #12460204/04/2020 at 12:24 PM #124603No me vale.
?? … above doesn’t make sense again??
1 user thanked author for this post.
04/04/2020 at 7:05 PM #12464304/04/2020 at 7:15 PM #124644Something like this should store the last three losing exit prices and not open a new trade if price is +/-0.5% of them. Not tested.
1234567891011121314if strategyprofit < strategyprofit[1] thenprice3 = price2price2 = price1price1 = tradepriceendiftradeon = 1if close < price1*1.005 and close > price1*0.995 or close < price2*1.005 and close > price2*0.995 or close < price3*1.005 and close > price3*0.995 thentradeon = 0endifif (your entry conditions) and tradeon thenbuy 1 contract at marketendif1 user thanked author for this post.
-
AuthorPosts