[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Print statement for TradeBullet Order Automation



PureBytes Links

Trading Reference Links

Hi again Don,

Looked at exactly what you said this time - your code;

print (file("D:\Tradebullet\order1.tb"),
"PLACE,33106644,EUR/USD,DEFAULT,BUY,10000,MARKET,0,0,GTC,,");

Running by itself I was able to produce the following file:
PLACE,33106644,EUR/USD,DEFAULT,BUY,10000,MARKET,0,0,GTC,,
File location and name were correct.

Looks like you are not mixing string/numeric - looks like you are not
getting to the line of code.

Larry


Donald Beck wrote:
> 
> Hello Group.
> 
> Struggling to get my head around this.
> 
> I am trying to write a print command in EL that can
> send the file to TradeBullet. Nothing happens.
> 
> Any help appreciated!!
> 
> So far I have....
> 
> If LastBarOnChart then begin;
> If close >= DonMid(DonHigh,Buy2) + VALUE1 points then
> begin;
> print (file("D:\Tradebullet\order1.tb"),
> "PLACE,33106644,EUR/USD,DEFAULT,BUY,10000,MARKET,0,0,GTC,,");
> end;
> 
> The strategy in EL is...
> BEGIN
> VALUE1=BUY1;
> BUY("Buy") at DonMid(DonHigh,Buy2) + VALUE1 points
> stop;
> End;