bug entryprice(1)

Questions about MultiCharts and user contributed studies.
gregorio123456
Posts: 117
Joined: 08 Nov 2005
Been thanked: 3 times

bug entryprice(1)

Postby gregorio123456 » 02 Apr 2009

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

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 03 Apr 2009

Thank you. This is confirmed issue and will be fixed in the next beta.


Return to “MultiCharts”