Information
Username: | cAlgo_Fanatic |
Member since: | 10 Jan 2013 |
Last login: | 12 Mar 2013 |
Status: | Active |
Activity
Where | Created | Comments |
---|---|---|
Algorithms | 0 | 14 |
Forum Topics | 0 | 512 |
Jobs | 0 | 0 |
Last Algorithm Comments
Consider using the new TimeFrame class and property.
Please correct your robots (or redownload) to include this lines of code for proper results based on the robots logic:
protected override void OnPositionClosed(Position position)
{
_position = null;
}
Demark Pivot Points: /algos/indicators/show/273
See also: /forum/whats-new/913. Round Numbers based on a new method ChartObjects.DrawHorizontalLine() that is available with the new release of cAlgo.
Please remove the first line: //#reference: ..\Indicators\ZigZag.algo
and add the reference by clicking on the button Add Reference next to build.
Please use the button "Add Reference" to locate and add the AverageTrueRange.algo file to the Supertrend. Make sure the AverageTrueRange is located in the correct folder and that it has been build first.
You can add this statement to the beginning of the Calculate method:
if(index < LevelH) return;
to avoid an Argument Out Of Range Exception when the index is less than LevelH.
There is also some redundant code like:
int iSeriesCloseCnt = MarketSeries.Close.Count-1;
//...
if(index == iSeriesCloseCnt) // this is always true
Please click on the link "How to Install" in the Robots section: /algos/robots for information.
The release will be within next week. You can see what it will look like with Spotware cAlgo.
cAlgo will include a build in timer in the next release.
You might want to use labels (see /forum/whats-new/labels-and-a-new-method-to-create-orders) or a List (see /forum/calgo-reference-samples/56) for the positions opened by each robot in order to control only the positions of each robot.
GetPositionsSide() loops through all the positions under the account and if one currency has the opposite direction of the other then it returns -1, thus not effectively controlling the direction of each currency and resulting in no action.
If you need help with the code please post a question in the Robot (cBot) Development Support section of the forum (/forum/cbot-support).
Please change this line IsOverlay = false to IsOverlay = true
In order to install an indicator please follow the instructions found when you click the "How To Install" link found under the Headline Indicators in the Indicators List Page (Top Left - under the Gray Notification)
Let us know if you require additional help downloading and installing indicators/robots