Here is the source code of the technical indicators included in Forex Strategy Builder. They are listed with an information purpose only.
These technical indicators are writen in .NET C#. If you want, you can use these indicators as base for writing of your own custom indicators. See for more details about the custom indicators in the forum.
All indicators are available for download here:
Original_Indicators.zip.
The base classes and enumerations are here:
Indicators_Base.zip.
Please post your comments or question into the forum. You can find additional information about the indicators into the help.
Similar to Oleg, is there a way for the stop or take profit (Stop Limit.cs indicator) to use the highs and lows, instead of the close? On my Forex trading platform, I can set a stop and a limit -- they are triggered by the hi or low, not the close.
In Stop Limit, the calculate function only has "return". The description says "The implimentation of logic is in Market.AnalyseClose(int iBar)". Is there a Market.AnalseHigh? Or can I make a custom version of the Market class?
BTW -- awesome app you have made. Thank you so much !!
Dear dlman,
I cannot understand the problem. The Stops and Limits beeng triggered once the price touches them. That's the temporary high or low.
The code of the Stop Limit indicator is in the backtester just because it has to place the SL or TP prices according to the specific position. The indicator doesn't know the entry price of the position. So I cannot make the calculations in the indicators source code.
The formula is SLPrice = EntryPrice - Stop * PipsValue
Forex Strategy Builder sends a separate pending StopLimit order for each position.
The trading platform Forex Strategy Trader uses StopLoss and TakeProfit parameters when sets the order in MetaTrader. Its implementation is in the expert Advisor. You can see it.
Hi,
Is there a way to check if Previous Low was lower than BOLLINGER BAND?
Thank you!
This logic rule is not included in the original indicator. If you are familiar with programming you can easily add this to a custom BB indicator.
hi .
my name is anuj , i am an post graduate student "MTECH"
THESE DAYS I AM SIFTING THROUG NET TO GET SOME KIND OF HELP AND GUIDANCE IN MATLAB AND CFD I WILL BE GREAT FULL TO U I U CAN HELP ME
Hi,
Fantastic program you have developed. I have learned a lot about forex and strategies by using it.
I am writing a custom indicator for it now but I am having real problems tracing a defect in my logic. I have tried using the source code you provide but there are several data items missing that prevent me compiling and using debug to trace through my code and find the fault. Could you provide the missing bits of code to allow compilation or is there a way to debug using what you provide already.
Thanks again for wonderful program and keep up the good work.
Best Wishes
Mick
Mick,
I'll try to add some debug capabilities to the custom indicators later.
By the way, there is an enumerator called "Configs", in the file "indicators.cs" line 376-377, but it appears to have more values that it shows actually, is that so??, or it only has these two values:
SIGMA_MODE_SEPARATED_CHART,
SIGMA_MODE_MAIN_CHART
Thanks again.
These two parameters:
SIGMA_MODE_SEPARATED_CHART,
SIGMA_MODE_MAIN_CHART
are coming from the config.xml file. It's done in that way in order to allow the users to change the sigma mode.
The default values are:
SIGMA_MODE_MAIN_CHART = 1
SIGMA_MODE_SEPARATED_CHART = 5
ps.
-------------
Your questions are highly welcome. I'm in front of writing a guide about the custom indicators.
Hello Miroslav,
I am having some troubles reading your code, I believe that may be you can help me with this, is just that I can not find the Class "DataPeriods" and the Element "Data" in the file "indicator.cs"
181 ///
182 /// Time frame of the loaded historical data
183 ///
184 protected static DataPeriods Period { get { return Data.Period; } }
Thanks, and good work.
Hello joe,
The property Period gives the period of the currently loaded instrument. It is of type DataPeriods, which is an enumeration:
public enum DataPeriods
{
min1 = 1,
min5 = 5,
min15 = 15,
min30 = 30,
hour1 = 60,
hour4 = 240,
day = 1440,
week = 10080
}
I think this is already explained in the forum. See Base Classes and Enumerations topic. There are some examples there also.
Regards,
Miroslav
Hello
i searched the Enumerations.cs in the indicator base files and didnot find the public enum DataPeriods which described in the post
forexsb.com
Where in ( indicator base ) i can find it
Regards
I'm actually more interested in writing my own indicators...
If we can use our custom-made indicators to generate and optimize strategies, it'll be great!
Hello Nick,
Custom indicators capability was added to Forex Strategy Builder v2.8.3.7b.
It would be useful to get possibility for experiments with Ihimoku Indicator lines. Are you planning to include this indicator?
Best Regards - Sart