VWAP Automated Order

Forums ProRealTime English forum ProOrder support VWAP Automated Order

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • #135674

    Hi Guys,

    Would any of you wizards be able to create a pro order strategy using an adjustable timeframe but mainly 1 minute and 5 minute using the VWAP indicator.

    Buy Conditions

    Condition 1

    Price crosses above VWAP

    Condition 2

    Next bar closes higher than the VWAP

    execute order at next bar

    Sell (Short) Conditions

    The exact opposit of the Buy Condition

    Exit Conditions

    Still toying with this but would like the ability to backtest different variatons of a trailing stop by pips, % and value.

     

    #135689

    That below code should trigger the orders based on the VWAP cross you described:

    Change the trailing stop instruction to the desired one (last line of the code).

    #135702

    Thank you @Nicolas

    This is exactly what I wanted perfect! just one question around the position sizing. I did not see an element within the code that allows what the entry position size should be?

     

    #135703

    change line 20 with “buy 1 contract at market”, do the same for the sellshort order.

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login