Just thought I'd ask...
I've been doing a bit of coding in the TradeStation "EasyLanguage" in Text Mode and wondering what would be give me more. I've used C-mode with tags which is awesome. Auto indentation, syntax highlighting, ... Oooooooo!
I'm sure I'm not up for writing a major mode.
Here's a sample:
method void UpdatePlaceOCOButton()
variables: OrderTemplateInfo info;
begin
if IncludeOCO()
and AppStorage[OCO_TEMPLATE_KEY] astype string <> ""
and PlaceOCOButton <> NULL
and OCOOrderTemplateInfo <> NULL
then
begin
info = OCOOrderTemplateInfo.Find(
AppStorage[OCO_TEMPLATE_KEY] astype string );
PlaceOCOButton.BackColor = OCOButtonBackColor;
PlaceOCOButton.Text = !( "Place OCO Order" );
if info <> NULL then
begin
switch( info.Action )
begin
case OrderTemplateAction.exit:
if PositionsProvider1.State = DataState.loaded then
PlaceOCOButton.Enabled = PositionsProvider1.Count > 0
else
PlaceOCOButton.Enabled = false;
if PreviewOrdersCheckbox.Checked
and OrderPreviewAllowed
and PlaceOCOButton.Enabled then
begin
if LongPositionExists() then
PlaceOCOButton.BackColor = SellButtonBackColor
else
PlaceOCOButton.BackColor = BuyButtonBackColor;
if OCOExitPreviewInProgress = false then
PlaceOCOButton.Text = !( "Preview OCO Order" );
end;
case OrderTemplateAction.entry:
PlaceOCOButton.Enabled = true;
default:
PlaceOCOButton.Enabled = false;
end;
end
else
begin
PlaceOCOButton.Enabled = false;
end;
end;
end;