Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
I try to test my strategy i click fast test it says "enable only for registered version'
Sure, this is limitation of the trial version. You should buy program to use all its functions. Good news: price is reduced to $135. You can test your strategy by pressing Connect button and enabling strategy execution. But testing period is limited for 1 month of history data.
terranin, will you post a code example of what the code would look like to test a strategy? on your web site you say it is similar in function to MT4.
Sure, buy the way documentation for program contains all description how to write strategies and indicators with examples.
For example strategy that moves StopLoss to breakeven after profit for this order becomes bigger defined value. It uses some additional functions like a GetStopLossPoints, SetStopLossPoints that are included in StrategyInterfaceUnit and simplified strategy development.
Code:
//--------------------------------------------------------------------------
// Moves stop loss at all orders when profit is bigger defined value
// (c) Koshelev M.A.
//--------------------------------------------------------------------------
library StopMover;
uses
StrategyInterfaceUnit;
var
ProfitBigger: integer;
NewStopLoss: integer;
{-----Init strategy----------------------------------------------------------}
procedure InitStrategy; stdcall;
begin
StrategyShortName('StopMover');
StrategyDescription('Moves stop loss when profit if bigger some value');
RegOption('ProfitBigger', ot_Integer, ProfitBigger);
ProfitBigger := 50;
RegOption('NewStopLoss', ot_Integer, NewStopLoss);
NewStopLoss := 10;
end;
{-----Done strategy----------------------------------------------------------}
procedure DoneStrategy; stdcall;
begin
//
end;
{-----Reset strategy---------------------------------------------------------}
procedure ResetStrategy; stdcall;
begin
//
end;
{-----Process single tick----------------------------------------------------}
procedure GetSingleTick; stdcall;
var
i: integer;
begin
for i:=0 to OrdersTotal - 1 do
if OrderSelect(i, SELECT_BY_POS, MODE_TRADES) then
if (OrderType in [tp_Buy, tp_Sell]) and (OrderProfitPips >= ProfitBigger) and
(GetStopLossPoints(OrderTicket) <> NewStopLoss) then
SetStopLossPoints(OrderTicket, NewStopLoss);
end;
exports
InitStrategy,
DoneStrategy,
ResetStrategy,
GetSingleTick;
end.
New build 6 is available on the site. New features:
1. Added new functions to strategy interface to get information about an account: AccountBalance, AccountEquity, AccountMargin, AccountFreeMargin, AccountLeverage, AccountProfit.
2. Added progress indicators for data recalculations (File->Rebuild All,
File->Recount indicators).
3. Corrected mistake in strategy optimizer - last strategy parameter was invisible in the left down corner.
4. Added new command to strategy interface: "Breakpoint" that stops strategy executions and shows debug window. After closing this window strategy continue working.
5. Corrected mistake in swaps calculation.
6. Added new tool "Andrews' Pitchfork".
7. Now you can edit and delete indicators on the chart with right mouse click on them.