A Gold Pass member was developing an example strategy involving two averages crossing each other to trigger a market buy order. He did not want o have to wait until the next bar to enter the trade but he did not want to enter a market order immediately. He asked how to go about introducing a user input number of ticks between the price where the cross occurs and the level that has to be reached (or exceeded) to place the market buy order.
Remember that as a bar develops the values of the averages change as price changes. This means that the lines can cross and uncross each other several times within the bar. The only way to be sure that the lines have crossed is to wait until the end of the bar.
See https://markplex.com/free-tutorials/tutorial-144-introduce-delay-to-market-order-entry-after-average-cross/
Remember to join the markplex email list at: https://markplex.com/contact/join-markplex-email-list/
Comments