How to specify specific Entry and Exit
Forums › ProRealTime English forum › ProOrder support › How to specify specific Entry and Exit
- This topic has 10 replies, 4 voices, and was last updated 3 years ago by
Wolf.
-
-
02/01/2018 at 2:02 AM #61159
Hello,
im trying to write a code that could enter on specific date , month and year and then exit on antother specific date . Below is an example of entry and exit.
i have 30 – 40 different entry and exit dates i want to backtest on different stocks.
Entry Exit
05.07.2013 08.10.2013
thanks
02/01/2018 at 3:13 AM #61160Can’t you select the date/time range in the backtest dialog box?
Hard coding dates in the code would make it more difficult for you to later change them, wouldn’t it?
02/01/2018 at 11:24 AM #6118602/01/2018 at 11:35 AM #61187There you go (you will replace dotted lines with your code and set your own conditions), but I still think using a watchlist next to the backtest dialog box would do way better:
12345678910ONCE StartDate = 20130705ONCE EndDate = 20131008TradingON = (date >= StartDate) AND (date <= EndDate)..IF Your_Conditions AND TradingON THENBUY/SELLSHORT......ENDIF..1 user thanked author for this post.
02/01/2018 at 11:55 AM #6119105/22/2022 at 12:30 AM #193615Hi guys,
Can you please help me, I would like to be able to enter trades manually and then simply have a code or system that will close automatically for me all trades at a specific time, for example end of the day, or a certain time..
Please let me know I can’t find a way to do this with deals opened manually..
Thanks
Ivan
05/22/2022 at 6:30 AM #193616It’s not possible for any automatic strategy to know about trades opened manually or by other strategies.
You can only manually close trades opened by any automatic strategy, but that strategy will be immediately stopped.
05/22/2022 at 10:34 AM #193641You can only manually close trades opened by any automatic strategy, but that strategy will be immediately stopped.
Ehh …
You can only stop automatic strategies, and depending on parameter settings the position will immediately be closed, or left open for you to deal with manually.05/22/2022 at 10:36 AM #193642Hi Roberto, I am Italian like you but I write in English so everyone can read us too..
I formally requested Prorealtime to add the possibility to “close all trades” at a specific time or date and time even for the deals opened manually.
The reason behind my request is that I am finding hard to close the losing deals and I let them run for days and days until they become a big loss, eating all my profits.
At the end this is a rule very commonly used by day traders ” to close all positions when trading session closes” to prevent indeed having any open deal becoming a big loss overnight or due to gapping at next open..
I know we have Stop losses, but I prefer to trade with no stop loss and then just close all deals at the end of the day… I just can’t do it I suppose due to emotional trading (it’s hard to manually close losing deals!) So I would be happy to have this option in the system that does it automatically for me, for all my deals..
1 user thanked author for this post.
05/22/2022 at 10:49 AM #193644I understand. Only PRT can be of help by adding an option to close a trade at a given time, in any case or only if losing at that time. I hope they adhere to your request sometime in the next months/years.
05/22/2022 at 2:39 PM #193662Hi Roberto,
I hope too because looking at my day trading stats, if I would have “all my losing deals” closed at the end of each day for example I would be consistently in profit and this is because my % win rate is quite higher than the losers.
I just have to stick to the rule to cut the losers short and for this I need a system to do it for me 🙂
I will update you if they let me know.
Thanks
-
AuthorPosts
Find exclusive trading pro-tools on