saqibakhan1
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: March 16th, 2022
Contact: TradingView Profile

Autoview Oanda automation

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

processingclouds
Pine Script Master
Pine Script Master
Posts: 115
Joined: January 30th, 2022

Re: Autoview Oanda automation

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"

dantob
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: August 13th, 2022
Contact: TradingView Profile

Re: Autoview Oanda automation

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.

Return to “Pine Script Q&A”