PCMA

Expand / Collapse
 

PCMA


PCMA


Author: Black

It compares a Price Channel moving average with a SMA, and opens Buy or Sell positions based on their location relative to each other. This Strategy also gives the user the option to execute only Buy signals, or only Sell signals, or both. As the tests show, this strategy tends to be more profitable on Sell signals alone rather than on Buy signals or both Buy and Sell signals. The Price Channel and the SMA settings can be changed not only in the History section of the Settings tab, but also in the main body of the Settings tab. This allows to test the strategy with lots of different settings much faster than having to open the History box every time. When changing the period from the 15-minutes that the Strategy is set at to a different period, remember to change the Limit and Stop to match the period change.



Download File


PCMAa.act PCMAa.act (6.40 KB, 192 views)

User Comments

Click to subscribe to comments RSS feed...

No Member Photo
View Members Profile...,Posted By by Elliot waver added Friday, March 04, 2011


I tried in it in live. but as soon as it started it closed all my existing positions even in other markets not running under the strategy
 

No Member Photo
View Members Profile...,Posted By by Administrator added Monday, March 07, 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


Dear, Elliot!

According to the logic of this script, all positions (not only opened by this strategy) can be closed:

if (TradeBuy=TradeSell) then
begin
  for i:=TradeList.Count-1 downto 0 do
  begin
    CloseTrade(TradeList.Get(i), TradeList.Get(i).Amount, TraderRange, TradeList.Get(i).Tag);
  end;
end;

To avoid this situation you should modify this part of the script into:

  for i:=TradeList.Count-1 downto 0 do
  begin
    if TradeList.Get(i).Tag='TradeBuy' or TradeList.Get(i).Tag='TradeSell' then
    CloseTrade(TradeList.Get(i), TradeList.Get(i).Amount, TraderRange, TradeList.Get(i).Tag);
  end;

Best Regards
ActFx Forum Administrator

 


Your name: *
Verification Code:
*
 

Details
Type: SCRIPT
Article has been viewed 660 times.
Options