Risk warning

All articles, strategies and indicators are just reflecting a single traders opinion and should be viewed as that.
I advice everybody to trade with a DEMO account!

Sunday, March 6, 2011

A traders assistant strategy

A trader assistant helps a trader in his trading. Tries to learn from the trader. Verifies his positions. Do his paperwork...make sure he has coffee.... Its basically an intermediate position to become a real trader.

When you speak to professional trader you will notice that most of them are trading mid or long term on a large time frame like 1 hour or day chart. When they are long and the price drops the most of them are talking about a great buying opportunity. The inverse when they are short.

This is the basic principle of this strategy. The strategy makes small trades within the strategy of the "real" trader. So before starting this strategy you need to decide on a mid or long term strategy. Decide what the entry and the target is. Make the trade or not and let this strategy run with a small size.

This strategy can't make any loosing trades as long the traders strategy is good. That's because the strategy only closes his position when the traders position is going into loss. Of course it is  recommendable that you let the strategy run with a small position size compared to the traders position.

How can this strategy turn out.
1- worst case scenario
traders entry was totally wrong
loss = traders loss + strategy loss (should be small because it can only enter with a small position)
2- bad scenario
trade went into direction of traders target but didn't reach it
this means trade went into profit, hopefully trader did protect the potential profit
loss/profit=traders loss/profit +/- strategy loss/profit
3-best scenario
target reached
profit is traders profit + number of profit takings of strategy (can be large if the pair "waved" to the target)

How do u use this strategy.
First of all determine your long term strategy. Do your homework!
trader_entry => what is the entry of your long term strategy
trader_target => what is the target of you long term strategy
assistant_max_entry_minilots => what is the maximum position this strategy can take in minilots

Important!!! Run this strategy under a smalle timeframe like 5 min. Determine the long term strategy under time frame like 1 hour or day chart !!!

The code for those that are using the new version of dealbook or prostation:

strategy traders_assistant;
/*written by ctlprogrammer*/
/*Warning for demonstration purpose only, no live trading please*/
/*you can freely copy the code but plz leave this header*/
/*http://ctltrading.blogspot.com*/

input trader_entry=0,trader_target=0,assistant_max_entry_minilots = 1;
begin
bool long_only,short_only;

integer currentbar;
if back(close) <  front(close) + 6 then return;
currentbar := back(close);
Fast_Stochastics();

if trader_target>trader_entry then long_only:=true;
if trader_target<trader_entry then short_only:=true;


{the assistant tries to capture extreme sell or buy opportunities within the strategy of the master trader}
if Fast_Stochastics.line_d[currentbar]<30 and Fast_Stochastics.line_d[currentbar-1]<Fast_Stochastics.line_d[currentbar]
and long_only=true and not long() and not short() and close[currentbar]>trader_entry then buy(assistant_max_entry_minilots);

if Fast_Stochastics.line_d[currentbar]>70 and Fast_Stochastics.line_d[currentbar-1]>Fast_Stochastics.line_d[currentbar]
and short_only=true and not long() and not short() and close[currentbar]<trader_entry then sell(assistant_max_entry_minilots);

{if any profit and sign or reversal => you did fine just close}
if fpl()>1 and long_only=true and long() then
begin
if Fast_Stochastics.line_d[currentbar-1]>Fast_Stochastics.line_d[currentbar] then exitlong();
end;

if fpl()>1 and short_only=true and short() then
begin
if Fast_Stochastics.line_d[currentbar-1]<Fast_Stochastics.line_d[currentbar] then exitshort();
end;

if long_only=true and long() and close[currentbar]<trader_entry then exitlong();
if short_only=true and short() and  close[currentbar]>trader_entry then exitshort();

end.

The code for those that are using the old version of dealbook or prostation:

strategy traders_assistant;
/*written by ctlprogrammer*/
/*Warning for demonstration purpose only, no live trading please*/
/*you can freely copy the code but plz leave this header*/
/*http://ctltrading.blogspot.com*/
input trader_entry=0,trader_target=0,assistant_max_entry_minilots = 1;
vars long_only(bool),short_only(bool),currentbar(number);
begin
if back(close) <  front(close) + 6 then return;
currentbar := back(close);
Fast_Stochastics();
if trader_target>trader_entry then long_only:=true;
if trader_target<trader_entry then short_only:=true;

{the assistant tries to capture extreme sell or buy opportunities within the strategy of the master trader}
if Fast_Stochastics.line_d[currentbar]<30 and Fast_Stochastics.line_d[currentbar-1]<Fast_Stochastics.line_d[currentbar]
and long_only=true and not long() and not short() and close[currentbar]>trader_entry then buy(assistant_max_entry_minilots);
if Fast_Stochastics.line_d[currentbar]>70 and Fast_Stochastics.line_d[currentbar-1]>Fast_Stochastics.line_d[currentbar]
and short_only=true and not long() and not short() and close[currentbar]<trader_entry then sell(assistant_max_entry_minilots);
{if any profit and sign or reversal => you did fine just close}
if fpl()>1 and long_only=true and long() then
begin
if Fast_Stochastics.line_d[currentbar-1]>Fast_Stochastics.line_d[currentbar] then exitlong();
end;
if fpl()>1 and short_only=true and short() then
begin
if Fast_Stochastics.line_d[currentbar-1]<Fast_Stochastics.line_d[currentbar] then exitshort();
end;
if long_only=true and long() and close[currentbar]<trader_entry then exitlong();
if short_only=true and short() and  close[currentbar]>trader_entry then exitshort();
end.

1 comment: