First, create an alert on an active market, Bitmex Perpetual Swaps XBTUSD as an example, with a condition like price greater than 1, only once. Add some test commands with d=1 in them. d=1 disables live trades, but more importantly, it will output what Autoview is going to do when you go live.
e=Binance s=XRPBTC b=buy q=25% d=1
e=Binance s=XRPBTC b=sell q=1% d=1
Second, you're going to need to open your console where you can see all your info, errors and warnings. Here's an article on how to access your Autoview log: https://use.autoview.with.pink/hc/en-us/articles/115001869928-How-do-I-check-for-errors-)
This is what you will see in your log after firing the above test alert.
The blue sections reveal what your commands would have done. The side of the books, the order type, price, quantity and all other relevant information.
Testing Tips and Tricks
When passing balues through a script, it is important to know that you do not have to wait for a condition to trigger, you can force it.
In your script, you can force the close condition to be "true" so it will fire every candle.
//Change whatever the longCondition is to be true
longCondition = true if longCondition strategy.entry("long", strategy.long, alert_message=Autoview command to test")
You can also use an epoch for a specific timed single trigger.
//Get the time for the EPoch here: https://www.epochconverter.com/ epoch = input.int(1678220020, "EpochTime") * 1000 if time == epoch strategy.entry("long", strategy.long, alert_message=Autoview command to test")