Autoview Oanda automation
Posted: Wed Mar 16, 2022 3:55 pm
Hello
After hours of studying the content (thank you Mr Zen Art of Trading) I've manage to create my own script.
I'm at the stage where I have connected Autoview to my Oanda Practice account...here's the hurdle I'm stuck on. My alerts are not executing positions on the test account :(
Here is my condition and alert function. works absolutely fine in tradingview:
* //Entries
* longCondition = sco and t// and hag
* if (longCondition)
* strategy.entry("Long", strategy.long)
* alert(message = "a=*testacc" + " e=oandapractice" + " q=50" + " s=WTICO_USD" + " t=market" + " b=long", freq=alert.freq_once_per_bar_close)
This is the message populated in the create alert tab:
* WTI Rap: order {{strategy.order.action}} @ {{strategy.order.contracts}} filled on {{ticker}}. New strategy position is {{strategy.position_size}}
I've watch the "How to AUTOMATE a Pine Script STRATEGY" series (all 8 videos) multiple times and I think I've gone mad. I just cannot seem to get the alerts to trigger trades through autoview...please help !
thanks
After hours of studying the content (thank you Mr Zen Art of Trading) I've manage to create my own script.
I'm at the stage where I have connected Autoview to my Oanda Practice account...here's the hurdle I'm stuck on. My alerts are not executing positions on the test account :(
Here is my condition and alert function. works absolutely fine in tradingview:
* //Entries
* longCondition = sco and t// and hag
* if (longCondition)
* strategy.entry("Long", strategy.long)
* alert(message = "a=*testacc" + " e=oandapractice" + " q=50" + " s=WTICO_USD" + " t=market" + " b=long", freq=alert.freq_once_per_bar_close)
This is the message populated in the create alert tab:
* WTI Rap: order {{strategy.order.action}} @ {{strategy.order.contracts}} filled on {{ticker}}. New strategy position is {{strategy.position_size}}
I've watch the "How to AUTOMATE a Pine Script STRATEGY" series (all 8 videos) multiple times and I think I've gone mad. I just cannot seem to get the alerts to trigger trades through autoview...please help !
thanks