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
User Comments
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
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
|
Type: SCRIPT
Article has been viewed 660 times.
|