Please help me thank you.

#1
if AKN2<=MBKN2 AND BKN2>=MAKN2 THEN BEGIN
PSELL2: SELLSHORT(PK2 AND holding<=0,2,THISCLOSE),IGNORECHECKPRICE;
KBUY2: Buy(KD2 AND HOLDING<=0,2,THISCLOSE),IGNORECHECKPRICE;
PBUY2: Sell(PD2 AND holding>=0,2,THISCLOSE),IGNORECHECKPRICE;
KSELL2: BUYSHORT(KK2 AND HOLDING<=0,2,THISCLOSE),IGNORECHECKPRICE;
PSELL: SELLSHORT(PK AND holding<=0,1,THISCLOSE),IGNORECHECKPRICE;
KBUY: Buy(KD AND HOLDING>=0,1,THISCLOSE),IGNORECHECKPRICE;
PBUY: Sell(PD AND holding>=0,1,THISCLOSE),IGNORECHECKPRICE;
KSELL: BUYSHORT(KK AND HOLDING<=0,1,THISCLOSE),IGNORECHECKPRICE;
END
if AKN2>MBKN2 AND HOLDING<0 THEN BEGIN
PSELL3: SELLSHORT(AKN>MBKN AND HOLDING<0,HOLDING,LIMIT,Close+0.4),IGNORECHECKPRICE;
KBUY3: Buy(AKN>MBKN AND holding>=0,EXITVOL,LIMIT,Close+0.4),IGNORECHECKPRICE;
END
if AKN2>BKN2 AND HOLDING>=0 THEN BEGIN
KBUY4: Buy(EE ,2,THISCLOSE),IGNORECHECKPRICE;
KBUY5: Buy(FF ,1,THISCLOSE),IGNORECHECKPRICE;
END
if BKN<MAKN AND HOLDING>0 THEN BEGIN
KBUY3: SELLSHORT(BKN<MAKN AND holding>0,HOLDING,LIMIT,Close-0.4),IGNORECHECKPRICE;
KSELL3: Sell(BKN<MAKN AND holding<=0,EXITVOL,LIMIT,Close-0.4),IGNORECHECKPRICE;
END
if AKN>BKN AND HOLDING>=0 THEN BEGIN
KSELL4: Sell(HH,2,THISCLOSE),IGNORECHECKPRICE;
KSELL5: Sell(EE,1,THISCLOSE),IGNORECHECKPRICE;
END

Convert to AMI AFL

Thank you
Kreangast
2013-6-1
 
#2
IGNORECHECKPRICE :Ignored by the new trading system trading directive instruction issue price check .

HOLDING:Get the current account positions , multi- position back positive returns negative short positions

THISCOLSE:Control characters transactions , transaction when evaluating operating in accordance with the period 's closing price , the transaction is in the chart according to the actual transaction price optimum operation
 
#3
if AKN2>MBKN2 AND HOLDING<0 THEN BEGIN

Buy = Cover = ExRem(Buy, Short);
Short = Sell = ExRem(Short, Buy);
Position = IIf(Buy, 1, IIf(Short, -1, 0));
HOLDING = ValueWhen(Position!=0, Position, 1);

PSELL3:SELLSHORT(AKN>MBKN AND HOLDING<0,HOLDING,LIMIT,Close+0.4),IGNORECHECKPRIC E;
KBUY3: Buy(AKN>MBKN AND HOLDING>=0,EXITVOL,LIMIT,Close+0.4),IGNORECHECKPRI CE;
END

Change it into AMI AFL

Thank you

Kreangast
2013/6/2
 

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?