Page 1 of 1

Autoview Oanda automation

Posted: Wed Mar 16, 2022 3:55 pm
by saqibakhan1
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

Re: Autoview Oanda automation

Posted: Thu Mar 17, 2022 6:33 am
by processingclouds
Hey,

Ok the way to go about this is as follows:

1. Create Alert
2. Under condition, choose the script from the dropdown
3. Below it choose "alert() function calls only"

Re: Autoview Oanda automation

Posted: Thu Sep 22, 2022 10:25 pm
by dantob
saqibakhan1 wrote:
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
Hi, saqibakhan1,
Did you ever get this sorted out? I'm having the same problem that my coded alerts don't trigger.
thanks.