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
<pre>_SECTION_BEGIN; | |
// Code Source: wisestocktrader | |
SetChartOptions(0,chartShowArrows|chartShowDates); | |
/*Body Colors*/ | |
whiteBody=C>=O; | |
blackBody=O>C; | |
/*Body Size*/ |
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
// IMPORTANT! When ready to trade your AB system set the following settings: | |
// Report > Detailed Log | |
// Portfolio > Tick "Add artificial future bar" | |
// | |
// Set the From-To dates of the Backtest to the current month (eg. 1/Jan/16-1/Feb/16). | |
// Observe the last row to get your instructions for the next trading day. | |
// I like placing all variables that can be changed and optimised at the top. | |
// Then when the time comes to optimise, I create a simple: | |
// a = Optimize( "a", 1, 1, 10, 1 ); |
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 os | |
import json | |
import math | |
import time | |
import signal | |
import asyncio | |
import threading | |
import pythoncom | |
import comtypes.client |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Watcher | |
{ | |
public class Account |
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
# -*- coding: utf-8 -*- | |
import sys, os, clr, time | |
is_py2 = sys.version[0] == '2' | |
if is_py2: | |
import Queue as queue | |
else: | |
import queue as queue | |