Hi all,
Can anyone help with the following???
Enclosed is a script I use for a "trading Button" to retrieve MostRecent Bid/Ask pricing and trade when there is only a .10 spread between Bid/Ask on the e-russell. However; some the Ask/Bid prices retreved by getMostRecentAsk()/ Bid() function have extended decimals.(Bad esignal Data????).
So I used a rounding logic to truncate to 2 dec. places.
Simple enough... however when there is only a .10 spread after rounding values, my logic on line 170( ie: if(Ask - Bid == .10 ), is ignored and therefore lines 171 and 172 are ignored.
I have enclosed my script and debug Output file to show the results of Both getMostRecentAsk/Bids and rounded values.
This one has me stumped.
Angelo
Can anyone help with the following???
Enclosed is a script I use for a "trading Button" to retrieve MostRecent Bid/Ask pricing and trade when there is only a .10 spread between Bid/Ask on the e-russell. However; some the Ask/Bid prices retreved by getMostRecentAsk()/ Bid() function have extended decimals.(Bad esignal Data????).
So I used a rounding logic to truncate to 2 dec. places.
Simple enough... however when there is only a .10 spread after rounding values, my logic on line 170( ie: if(Ask - Bid == .10 ), is ignored and therefore lines 171 and 172 are ignored.
I have enclosed my script and debug Output file to show the results of Both getMostRecentAsk/Bids and rounded values.
This one has me stumped.
Angelo
Comment