NexusFi: Find Your Edge


Home Menu

 





In disbelief that there are no post on this subject


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one Bimi with 1 posts (0 thanks)
    2. looks_two kevinkdog with 1 posts (0 thanks)
    3. looks_3 ehlaban with 1 posts (0 thanks)
    4. looks_4 phantomtrader with 1 posts (0 thanks)
    1. trending_up 1,976 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

In disbelief that there are no post on this subject

  #1 (permalink)
MtgBanker
Tampa, FL/United States
 
Posts: 1 since Dec 2012
Thanks Given: 0
Thanks Received: 0

New to EasyLanguage...

After searching all the blogs and Google-ing every variation of my question for the last 2 days...

I have
a) NOT found the answer,
b) Am in disbelief that there are no post on the subject,
c) Will be very Impressed to say the least at whomever can answer the question

Not to mention GRATEFUL!

Need CODE on How to SET A FIXED HARD STOP (not a trailing) that is X # of PIPs above or below (LX/SX) my EntryPrice?

ie: if Currentprice = entryprice +10 pips {or+$50} then Set STOPLOSS at entryprice +5 pips{or +$25}
So say we're in Long YMZ12 @ 12,940
as soon as (if/when) the price goes to 12,950
Set a HARD Fixed STOP at 12,945

(It seems so simple I almost feel silly asking! Again still in disbelief post doesn't exist/ that I have not found it)
I have tried all the "out of the box" Tradestation codes and tried making variations to each to no avail.

It's currently 12:53 Eastern time, way past my bedtime... Reaching out to the "collective consciousness" and looking forward to being a little kid again at X-mas waking up to the BEST Present "THE PERFECT ANSWER!" For both long and short exits.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
Quant vue
Trading Reviews and Vendors
 
  #2 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


MtgBanker View Post
New to EasyLanguage...

After searching all the blogs and Google-ing every variation of my question for the last 2 days...

I have
a) NOT found the answer,
b) Am in disbelief that there are no post on the subject,
c) Will be very Impressed to say the least at whomever can answer the question

Not to mention GRATEFUL!

Need CODE on How to SET A FIXED HARD STOP (not a trailing) that is X # of PIPs above or below (LX/SX) my EntryPrice?

ie: if Currentprice = entryprice +10 pips {or+$50} then Set STOPLOSS at entryprice +5 pips{or +$25}
So say we're in Long YMZ12 @ 12,940
as soon as (if/when) the price goes to 12,950
Set a HARD Fixed STOP at 12,945

(It seems so simple I almost feel silly asking! Again still in disbelief post doesn't exist/ that I have not found it)
I have tried all the "out of the box" Tradestation codes and tried making variations to each to no avail.

It's currently 12:53 Eastern time, way past my bedtime... Reaching out to the "collective consciousness" and looking forward to being a little kid again at X-mas waking up to the BEST Present "THE PERFECT ANSWER!" For both long and short exits.


from your description, you have already coded it yourself ! easylanguage is that easy: just add the semi-colon at the end of the sentence and viola, you have your code.

Reply With Quote
  #3 (permalink)
 ehlaban 
Netherlands
 
Experience: Advanced
Platform: Ensign, Multicharts
Trading: SP500
Posts: 91 since Nov 2009
Thanks Given: 66
Thanks Received: 57


In Multicharts you can use
SetStopLoss(Amount);

so

SetStopLoss(EntryPrice - 25);

or

Sell("Exit long") 1 Contracts next bar at (EntryPrice - 25);

Reply With Quote
  #4 (permalink)
 
phantomtrader's Avatar
 phantomtrader 
Reno, Nevada
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Trading: ZN, ZB, CL
Frequency: Daily
Duration: Minutes
Posts: 588 since May 2011
Thanks Given: 217
Thanks Received: 990

There are three stop loss strategy codes built into the EL library. Go to Insert, Strategy, scroll down to Stop Loss. You can also access the EL help section on stop loss codes here: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=113165

Reply With Quote
  #5 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


MtgBanker View Post
New to EasyLanguage...

After searching all the blogs and Google-ing every variation of my question for the last 2 days...

I have
a) NOT found the answer,
b) Am in disbelief that there are no post on the subject,
c) Will be very Impressed to say the least at whomever can answer the question

Not to mention GRATEFUL!

Need CODE on How to SET A FIXED HARD STOP (not a trailing) that is X # of PIPs above or below (LX/SX) my EntryPrice?

ie: if Currentprice = entryprice +10 pips {or+$50} then Set STOPLOSS at entryprice +5 pips{or +$25}
So say we're in Long YMZ12 @ 12,940
as soon as (if/when) the price goes to 12,950
Set a HARD Fixed STOP at 12,945

(It seems so simple I almost feel silly asking! Again still in disbelief post doesn't exist/ that I have not found it)
I have tried all the "out of the box" Tradestation codes and tried making variations to each to no avail.

It's currently 12:53 Eastern time, way past my bedtime... Reaching out to the "collective consciousness" and looking forward to being a little kid again at X-mas waking up to the BEST Present "THE PERFECT ANSWER!" For both long and short exits.

Tradestation put out a few free books on how to program with Easy Language. The versions I have are from 2004, but they helped me a ton to do things like this, and learn Easy Language.

You should be able to find these pdf books "Getting Started With Tradestation Easy Language" and "Easy Language Reference Guide" on TS website. If you can't, PM me and I'll send you the old versions I have.

Follow me on Twitter Reply With Quote




Last Updated on December 8, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts