selling rate for automatic Trade
Forums › ProRealTime English forum › ProOrder support › selling rate for automatic Trade
- This topic has 4 replies, 3 voices, and was last updated 3 years ago by Fuchsilein.
-
-
01/05/2021 at 7:30 PM #156501
Hello,
I have a question. When a position has been executed and then sold again. How can I code the selling rate here so that I can continue working with the selling rate?
Buy with 13500 in the Dax
Sell by 134xx with “SET pTrailing” and i need the course for the next Trade.
Sorry for my English. This ist not so good. I hope your understand me.
Many thanks for your help.
Best regards
Fuchsi
01/05/2021 at 10:26 PM #156531Fuchsilein – Welcome to the forums….. however please follow the few simple forum rules. Your topic is strategy related and not Screener related. I moved your topic to the correct forum.
Post your topic in the correct forum:
_ ProRealTime Platform Support: only platform related issues.
_ ProOrder: only strategy topics.
_ ProBuilder: only indicator topics.
_ ProScreener: only screener topics
_ General Discussion: any other topics.
_ Welcome New Members: for new forum members to introduce themselves.I do not understand your question. Perhaps you would be better asking it in the German language forum if you think communicating in English might make things more difficult?
01/07/2021 at 2:25 PM #156753Hello,
Thank you for the move in the correct forum.
Best Regards
01/07/2021 at 4:44 PM #15678701/08/2021 at 6:28 PM #156971Hello,
no this in not mean.
This is a exampel.
Short or Long123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110//Dow Long - Short// Es werden keine Daten vor Start des Handelssystems geladen.// Im Fall eines ersten Starts dieses Handelssystems an einem Nachmittag, wird auf diese// Weise der nächste Tag abgewartet, um mögliche Kauf- und Verkauf-Order festzulegen.DEFPARAM PreLoadBars = 0// Die Position wird um 21 Uhr 58 (lokale Zeitzone) glattgestellt.DEFPARAM FlatAfter = 205800// Keine neue Position nach dem Candlestick, der um 21 Uhr 30 schließt.LimitEntryTime = 203000// Marktanalyse beginnt mit dem 1 Minuten-Candlestick, der um 9 Uhr 00 eröffnet.StartTime = 080000// Feiertage wie 24. und 31. Dezember werden ausgeschlossen.IF (Month=1 And Day=1) or (Month=5 AND Day=1) OR (Month=12 AND (Day=24 OR Day=25 OR Day=26)) THEN //Day=31 nur im DaxTradingDay=0ELSETradingDay=1ENDIF//--------------------------------------------------// Die Variablen können je nach Wunsch individuell angepasst werdenPositionSize = 1 //PositionsgrößeAmpiltudeSize = 10 //Abstandsgröße vom EröffnungskursStopOne = 10 //Erster Abstand zum StopStopTrailing = 50 //Erster Trainlingsabstand//--------------------------------------------------IF TIME=StartTime THENStartKurs = OpenENDIFIndexStartDay = StartKurs//--------------------------------------------------// Diese Variable wird ein einziges Mal vor dem Start des Handelssystems initialisiert.ONCE StartTradingDay = -1// Die während des Tages sich verändernden Variablen werden// beim ersten Balken jeden neuen Börsentages initialisiert.IF (Time<=StartTime AND StartTradingDay<>0) OR IntradayBarIndex=0 THENBuyPosition = 0SellPosition = 0StartTradingDay = 0ELSIF Time>=StartTime AND StartTradingDay=0 AND TradingDay=1 THEN// Der Index des ersten Balkens des Börsentages wird gespeichert. EröffnungskursStartTradingDay=1ELSIF StartTradingDay=1 AND Time<=LimitEntryTime THEN// Eröffnung KaufenIF BuyPosition>=0 THENIF LongOnMarket THENBuyPosition = 1ELSELimitEntryBuy = open[2] < (IndexStartDay+AmpiltudeSize) AND close > (IndexStartDay+AmpiltudeSize)LimitEntryBuy = close CROSSES OVER (IndexStartDay+AmpiltudeSize)IF LimitEntryBuy THENBUY PositionSize CONTRACT AT MARKETSET STOP pLOSS StopOneSET STOP pTRAILING StopTrailingENDIFENDIFENDIF// Eröffnung VerkaufenIF SellPosition>=0 THENIF ShortOnMarket THENSellPosition=1ELSELimitEntryShort = open[2] < (IndexStartDay-AmpiltudeSize) AND close > (IndexStartDay-AmpiltudeSize)LimitEntryShort = close CROSSES UNDER (IndexStartDay-AmpiltudeSize)IF LimitEntryShort THENSELLSHORT PositionSize CONTRACT AT MARKETSET STOP pLOSS StopOneSET STOP pTRAILING StopTrailingENDIFENDIFENDIFENDIF//--------------------------------------------------//TSL mit kleiner GewinnschwelleBreakeven = 15 //Sicherung des Gewinnes ab diesem ZeitpunktPointstokeep = 5 //breakeven-profit (Vorsicht vor dem spread!)//Stop Order, um die Positionen zu verlassenIF close > (TRADEPRICE+breakeven) THENSELL AT(TRADEPRICE+Pointstokeep) STOPENDIFIF close < (TRADEPRICE-breakeven) THENEXITSHORT AT (TRADEPRICE-Pointstokeep) STOPENDIFNow when I sell the Buy or the short I need the actual course for the new started.
Do you unterstand me?
-
AuthorPosts
Find exclusive trading pro-tools on