sell same bar close
Forums › ProRealTime English forum › ProOrder support › sell same bar close
- This topic has 6 replies, 4 voices, and was last updated 4 years ago by Vonasi.
Tagged: mtf, multitimeframe
-
-
01/01/2019 at 6:11 PM #87831
is it possible to sell at todays bar close? since backtesting can be made in tick mode?
If so, could someone help me with this code:
price must be above close 30 days ago
close must be lower than close 9 days ago
buy and next bar open and sell on bar close..
01/01/2019 at 6:19 PM #87832It is not possible to sell at the close of any bar as all orders go to market at the open of the bar after the decision bar. The closest you could get is to use MTF on a 1 second timeframe and sell at open of the final second of a day. MTF is not currently possible in real live trading. Also using 1 second charts seriously limits amount of back test data available for testing. It is also not possible to live trade algos on tick charts – backtesting is possible but not real live trading.
01/01/2019 at 11:37 PM #87842It is not possible to sell at the close of any bar as all orders go to market at the open of the bar after the decision bar. The closest you could get is to use MTF on a 1 second timeframe and sell at open of the final second of a day. MTF is not currently possible in real live trading. Also using 1 second charts seriously limits amount of back test data available for testing. It is also not possible to live trade algos on tick charts – backtesting is possible but not real live trading.
okay, thanks for answering. I would be fine buying 9.00 and selling 17,25 on 5min chart.
Would you be able to help me with the code?
01/03/2019 at 1:44 PM #87943Mean reverting strategy?
Here is the code built with MTF capability (you’ll not able to use it until the public release of it)
12345678910111213141516171819defparam cumulateorders=falseTIMEFRAME (daily,updateonclose)close30=close[30]close9=close[9]TIMEFRAME (5 minute,updateonclose)condition = close>close30 and close<close9 and time=090000if not onmarket and condition thenbuy at marketendifif longonmarket and time=172500 thensell at marketendifgraph close30graph close9 coloured(200,0,0)graph close//graph condition1 user thanked author for this post.
01/05/2019 at 7:37 PM #88047Mean reverting strategy?
Here is the code built with MTF capability (you’ll not able to use it until the public release of it)
12345678910111213141516171819defparam cumulateorders=falseTIMEFRAME (daily,updateonclose)close30=close[30]close9=close[9]TIMEFRAME (5 minute,updateonclose)condition = close>close30 and close<close9 and time=090000if not onmarket and condition thenbuy at marketendifif longonmarket and time=172500 thensell at marketendifgraph close30graph close9 coloured(200,0,0)graph close//graph conditionthank you very much nicolas 🙂
12/30/2019 at 12:23 AM #11559512/30/2019 at 8:29 AM #115600So that means we can not us coding to Buy or Sell on Automatic trading only backtesting
You can use code via ProOrder to Buy and Sell using automatic trading.
Multi Time Frame (MTF) trading was introduced a long time ago now and there were some teething problems at the beginning and for a while it was only available by request. The posts in this topic are from a year ago.
-
AuthorPosts
Find exclusive trading pro-tools on