| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (7) | Thread Tools | Display Modes |
|
||||
|
Quote:
__________________
www.forextester.com |
|
||||
|
Quote:
__________________
www.forextester.com Last edited by Terranin; 08-03-2006 at 06:02 PM. |
|
||||
|
Quote:
![]()
__________________
www.forextester.com |
|
||||
|
Quote:
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.
__________________
www.forextester.com Last edited by Terranin; 08-05-2006 at 10:25 PM. |
|
||||
|
I also attached documentation with all supported functions for indicators and strategies.
__________________
www.forextester.com |
|
||||
|
New build
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.
__________________
www.forextester.com |
![]() |
| Bookmarks |
| Tags |
| ultimate oscillator, polarized fractal efficiency |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/575-strategy-testers.html
|
||||
| Posted By | For | Type | Date | |
| Services de signaux de trading - Placements, jeux et casino en ligne | This thread | Refback | 11-05-2007 10:26 PM | |
| programy do testowania | This thread | Refback | 10-25-2007 08:41 AM | |
| Services de signaux de trading - Placements, jeux et casino en ligne | This thread | Refback | 10-21-2007 10:19 AM | |
| programy do testowania | This thread | Refback | 08-07-2007 01:16 PM | |
| Discussion Forex Strategy | This thread | Refback | 07-22-2007 04:05 AM | |
| Forex Strategy | This thread | Refback | 07-13-2007 12:53 AM | |
| programy do testowania | This thread | Refback | 07-02-2007 05:49 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MY TURTLES EA - need Testers | mikhaildgreat | Expert Advisors - Metatrader 4 | 119 | 09-06-2008 07:54 AM |
| Looking for beta testers. | AdamDuritz99 | Tools and utilities | 6 | 03-28-2007 07:47 AM |
| Time Bomb Tim Testers Needed | thesource | Post and compare Trades | 1 | 01-16-2007 09:45 PM |
| 2 EMA Strategy EA | abrs70 | Expert Advisors - Metatrader 4 | 6 | 01-12-2007 08:23 PM |
| FM strategy | black ice | Suggestions for Trading Systems | 8 | 11-10-2006 02:33 PM |