BBOpenClose

Expand / Collapse
 

BBOpenClose


BBOpenClose Strategy

Author: eMoe


Rules for this Strategy are:

Sell when the price touches the upper Bollinger Bands and close the position when the price touches the middle BBands. And if we made a sell entry and the price didn't touch middle band and rise above,than make another sell entry which is the double of previous entry after it rises ten points.Keep on adding sell positions in this way till the price touches the middle band and then close all positions.
The rules for the buy is vice versa of the sell.
 







Rate this Download:

Download File


BBOpenClose.act BBOpenClose.act (2.15 KB, 1,106 views)

User Comments

Click to subscribe to comments RSS feed...
No Member Photo by Tom posted Tuesday, July 19, 2011
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
Would someone know whay this strategy sometimes stops after it closes the trade in demo.
No Member Photo by Administrator posted Thursday, June 23, 2011
Supreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition points
No Member Photo by Amin posted Tuesday, May 24, 2011
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.

Thanks
best regards
No Member Photo by Administrator posted Tuesday, May 24, 2011
Supreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition points
No Member Photo by Amin posted Monday, May 23, 2011
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.


Hello, 
I got this error after orders have been closed, this crashs the strategy and it need to be restarted.
any idea ?

thanks in advance.
Amin


EXCEPTION
EListError in TStrategyProcessor
CODE

MESSAGE
Exception at trading strategy "BBOpenClose" in routine OnNewRate at Line:Column 35:8
List index out of bounds (3)
DETAILS

CALL STACK
fx_client.exe=>Classes.pas=>TList.Error=>3557
fx_client.exe=>Classes.pas=>TList.Get=>3595
fx_client.exe=>Classes.pas=>TList.Get=>3593
fx_client.exe=>TradeData.pas=>TTradeData.GetTrade=>716
fx_client.exe=>TradeData.pas=>TTradeData.GetTrade=>715
fx_client.exe=>StrategiesCallMethods.pas=>TStrategiesCallMethods.CM_TradeData=>627
fx_client.exe=>fs_iinterpreter.pas=>TfsMethodHelper.GetValue=>1333
fx_client.exe=>fs_iinterpreter.pas=>TfsDesignator.DoCalc=>1912
fx_client.exe=>fs_iinterpreter.pas=>TfsDesignator.DoCalc=>1856
fx_client.exe=>fs_iinterpreter.pas=>TfsDesignator.GetValue=>1953
fx_client.exe=>fs_iexpression.pas=>TfsDesignatorNode.GetValue=>531
fx_client.exe=>fs_iexpression.pas=>TEqNode.GetValue=>272
fx_client.exe=>fs_iexpression.pas=>TfsExpression.GetValue=>574
fx_client.exe=>fs_iinterpreter.pas=>TfsIfStmt.Execute=>3015
fx_client.exe=>fs_iinterpreter.pas=>TfsStatement.Execute=>2903
fx_client.exe=>fs_iinterpreter.pas=>TfsStatement.Execute=>2899
fx_client.exe=>fs_iinterpreter.pas=>TfsWhileStmt.Execute=>3059
fx_client.exe=>fs_iinterpreter.pas=>TfsStatement.Execute=>2903
fx_client.exe=>fs_iinterpreter.pas=>TfsProcVariable.GetValue=>1115
fx_client.exe=>fs_iinterpreter.pas=>TfsDesignator.DoCalc=>1912
fx_client.exe=>fs_iinterpreter.pas=>TfsDesignator.DoCalc=>1856
fx_client.exe=>fs_iinterpreter.pas=>TfsDesignator.GetValue=>1953
fx_client.exe=>fs_iinterpreter.pas=>TfsCallStmt.Execute=>2986
fx_client.exe=>fs_iinterpreter.pas=>TfsStatement.Execute=>2903
fx_client.exe=>fs_iinterpreter.pas=>TfsStatement.Execute=>2899
fx_client.exe=>fs_iinterpreter.pas=>TfsIfStmt.Execute=>3016
fx_client.exe=>fs_iinterpreter.pas=>TfsStatement.Execute=>2903
fx_client.exe=>fs_iinterpreter.pas=>TfsProcVariable.GetValue=>1115
fx_client.exe=>fs_iinterpreter.pas=>TfsScript.CallFunction=>2519
fx_client.exe=>fs_iinterpreter.pas=>TfsScript.CallFunction=>2510
fx_client.exe=>StrategyProcessor.pas=>TStrategyProcessor.CallFSFunction=>513
fx_client.exe=>StrategyProcessor.pas=>TStrategyProcessor.CallFSFunction=>508
fx_client.exe=>StrategyProcessor.pas=>TStrategyProcessor.Execute=>560
fx_client.exe=>Classes.pas=>ThreadProc=>11407
kernel32.dll=>=>BaseThreadInitThunk=>0

WINDOWS VERSION
6.0.6001 Service Pack 1
APPLICATION INFO
fx_client.exe 4.3.282/4.3.0
http://real4.sysfx.com:8118/xml/; eforex118; TRADER: plastikman
RAISE TIME
2011-05-23 14:58:40
Server Time: 08:58:40

No Member Photo by Tim posted Wednesday, February 09, 2011
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
Hello, 
good job! It works in backtest very well. But it doesn't work in reality. Everytime the Trade touch middle line, the trade isn't close. Instead i get a fault  message: exeption on strategy BBClose, conection lost. But my conection isn't lost. I tried it a few times. Every testing end with the same fault message. So i think there is a bug in the program!? 
One more question: it is possible to integrate a stopploss? 
Thanks and sorry about my bad englisch! 


Comment require login or registration.

Details
Type: SCRIPT

Article has been viewed 3,788 times.

Options