Posted By: Hredot
Alpha Vantage API key - where to put?! - 11/17/17 04:19
I searched in the manual but without success.
Where do API keys go, so that Zorro can properly connect to e.g. Alpha Vantage?
Posted By: veepsirtt
Re: Alpha Vantage API key - where to put?! - 02/18/18 09:05
Posted By: veepsirtt
Re: Alpha Vantage API key - where to put?! - 02/18/18 09:26
function run()
{
Stop = 10*ATR(100);
TakeProfit = 1*ATR(100);
// open new trade at random after last trade hit its target
if(NumOpenTotal == 0) {
if(random() < 0)
enterShort();
else
enterLong();
}
}
How to get the backtest report for the asset 'MSFT'?.
Give me full code.
Posted By: veepsirtt
Re: Alpha Vantage API key - where to put?! - 02/25/18 15:34
function run()
{
assetHistory("SPY",FROM_GOOGLE);
asset("SPY");
Stop = 10*ATR(100);
TakeProfit = 1*ATR(100);
// open new trade at random after last trade hit its target
if(NumOpenTotal == 0) {
if(random() < 0)
enterShort();
else
enterLong();
}
}
it raises
error 014 ATR needs LookBack 140>80!
How to correct it?.
Posted By: veepsirtt
Re: Alpha Vantage API key - where to put?! - 02/25/18 15:56
Test RandomPrice SPY
Simulated account AssetsFix
Bar period 1 hour (avg -1440 min)
Test period 2013-01-02..2018-02-23 (1295 bars)
Lookback period 141 bars (5 days)
Simulation mode Realistic (slippage 5.0 sec)
Spread 1.0 pips (roll 0.00/0.00)
Contracts per lot 1.0
Posted By: veepsirtt
Re: Alpha Vantage API key - where to put?! - 02/27/18 16:47
How to download unadjusted one-minute (M1) price data from the selected broker?
It downloads daily data.
function run()
{
set(TICKS|FAST);
NumYears = 5;
assetAdd("SPY");
assetHistory("SPY",FROM_AV);
asset("SPY");
plot("Dotted",price(),DOT,GREEN);
}