Powershell script to to test simple lis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import alpaca_trade_api as tradeapi | |
api = tradeapi.REST(key_id=<your key id>,secret_key=<your secret key>) | |
storageLocation = "<your folder location>" | |
barTimeframe = "1H" # 1Min, 5Min, 15Min, 1H, 1D | |
assetsToDownload = ["SPY","MSFT","AAPL","NFLX"] | |
iteratorPos = 0 # Tracks position in list of symbols to download | |
assetListLen = len(assetsToDownload) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import numpy as np | |
import talib | |
import alpaca_trade_api as tradeapi | |
api = tradeapi.REST(key_id=<your key id>,secret_key=<your secret key>) | |
barTimeframe = "1H" # 1Min, 5Min, 15Min, 1H, 1D | |
assetsToTrade = ["SPY","MSFT","AAPL","NFLX"] | |
positionSizing = 0.25 |
OlderNewer