Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

bumblebee

Members
  • Content Count

    6
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • Country
    United States

Trading Information

  • Vendor
    No
  1. Tams your crystal ball use copy and paste? I'm sure it my have its own program for compiling too since it has such a fast mouth and nothing else.
  2. Hi Ranger, Thank you for taking the time to respond with some thought. The sample code above does suffice my needs, as my initial thoughts were not exact. Anyhow, I have it working at the moment with the help of my broker as I really have no time to fiddle with code... Apparently they value my business. Best Regards, BB
  3. i use the new system and really like it.. had some trouble at first figuring out the multi legged strategy setup, but it was not difficult.... fast execution and no data issues at all.... really like it.
  4. Ihave also found this, but it just spits out a bunch of errors when i hit compile... any ideas? Im pretty sure this is what I am after.. thanks guys! // START Trading Strategy Study EasyLanguage Code [intrabarOrderGeneration = false] inputs: ShareOrPosition( 1 ), { pass in 1 for per share basis, 2 for position basis } ProfitTargetAmt( 5 ), { pass in 0 if you don't want a profit target } StopLossAmt( 1 ), { pass in 0 if you don't want a stop loss } BreakevenFloorAmt( 0 ), { pass in 0 if you don't want a breakeven stop } DollarTrailingAmt( 0 ), { pass in 0 if you don't want a dollar trailing stop } PctTrailingFloorAmt( 0 ), { pass in 0 here and/or in next input if you don't want a percent trailing stop } PctTrailingPct( 0 ), { pass in 0 here and/or in previous input if you don't want a percent trailing stop; else pass in XX for XX percent } ExitOnClose( false ) ; { pass in true if you want to exit the position at the close of the day, else pass in false. CAUTION: We recommend that you set this to TRUE only for back-testing, if at all; in automated execution, the exit order will NOT be filled at the close of the day; instead, the order can be sent into the extended session as a limit order. } if ShareOrPosition = 1 then SetStopShare else SetStopPosition ; if ProfitTargetAmt > 0 then SetProfitTarget( ProfitTargetAmt ) ; if StopLossAmt > 0 then SetStopLoss( StopLossAmt ) ; if BreakevenFloorAmt > 0 then SetBreakeven( BreakevenFloorAmt ) ; if DollarTrailingAmt > 0 then SetDollarTrailing( DollarTrailingAmt ) ; if PctTrailingFloorAmt > 0 and PctTrailingPct > 0 then SetPercentTrailing( PctTrailingFloorAmt, PctTrailingPct ) ; if ExitOnClose = true then SetExitOnClose ; // END Trading Strategy EasyLanguage Code
  5. hmmmm well lets see.. I am not a coder at all, never was and never will be. But lets see how it goes.. ask user for position variable, place position as limit order, ask user for stop loss, set initial stop loss, ask user for up to 3 different targets, ask user for each target if there is a need to trigger a stoploss action, if trigger needed move stop loss to breakeven with the option of adjusting factor variable, or if trigger needed change stoploss to trailing stoploss with the option of adjusting factor variable. i tried... anyone?????
  6. Hey Folks, Does anyone know where I can find some code to do this: (in easy language) a position on limit order, initial stop loss, 3 different targets, trigger of "stop loss change" to "break-even", with or without factor setting, at hit of a target, option to set the triggered "stop loss change" to be a "trailing stop loss". thanks!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.