test this in beta 5...... I don´t make test in MC4
SETEXITONCLOSE;
IF TIME = 1000 THEN BEGIN
BUY ("B1") NEXT BAR AT MARKET;
END;
IF TIME = 1020 THEN BEGIN
BUY ("B2") NEXT BAR AT MARKET;
END;
IF TIME = 1200 THEN BEGIN
BUY ("B3") NEXT BAR AT MARKET;
END;
IF TIME = 1030 THEN BEGIN
SELL ("E1") 1 CONTRACT TOTAL NEXT BAR AT MARKET;
END;
IF TIME = 1300 THEN BEGIN
SELL ("E2") 1 CONTRACT TOTAL NEXT BAR AT MARKET;
END;
IF TIME = 1310 THEN BEGIN
SELL ("E3") 1 CONTRACT TOTAL NEXT BAR AT MARKET;
END;
print(date,time,entryprice(0),entryprice(1), avgentryprice);
----------------------
when signal close all position I get this entryprice=entryprice(1)
thanks
juu
bug entryprice(1)
- Andrew Kirillov
- Posts: 1589
- Joined: 28 Jul 2005
- Has thanked: 2 times
- Been thanked: 31 times
- Contact: