Autoview is not your typical trading bot. It is a tool that allows you to build your own trading system, bots and tools. That means that there is a little bit of a learning curve, and you are likely going to want to do some testing and experimenting before you trade with real funds.
We recommend using a Sandbox or Testnet or Crypto.com (free), to test and experiment.
You always want to test the exchange you plan on actually trading on. For that reason, we are going to walk through setting up a test alert and firing a couple Binance test commands.
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.
Syntax used:
Second, you are going to need to open your Log where you can see all your info, errors and warnings. Note: Here is our How do I check for errors? article for more information.
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.
Syntax used:
e=Binance s=XRPBTC b=buy q=25% d=1
e=Binance s=XRPBTC b=sell q=1% d=1
Second, you are going to need to open your Log where you can see all your info, errors and warnings. Note: Here is our How do I check for errors? article for more information.
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 values 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(1738789050, "EpochTime") * 1000
if time == epoch
strategy.entry("long", strategy.long, alert_message=Autoview command to test")
The bottom line: Keep your Log open and fire as many tests as you need to until you have the alerts doing exactly what you want them to do. When you ae ready to go live, simply remove the "d=1" parameter from each command and watch both your Log and the exchange to ensure everything is as expected. We always recommend looking up the minimum order size for the exchange/market, and only using that until you are comfortable that everything is running as it should.
Comments
0 comments
Article is closed for comments.