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 ehlaban with 1 posts (0 thanks)
    2. looks_two phantomtrader with 1 posts (0 thanks)
    3. looks_3 MtgBanker with 1 posts (0 thanks)
    4. looks_4 Bimi with 1 posts (0 thanks)
    1. trending_up 2,623 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #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?
Strike Pause Holds, Oil Erases Monday Spike -- May CPI W …
Traders Hideout
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #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 
New York City, New York
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader
Trading: ES, NQ
Frequency: Daily
Duration: Minutes
Posts: 613 since May 2011
Thanks Given: 231
Thanks Received: 1,029

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,737 since Jul 2012
Thanks Given: 1,917
Thanks Received: 7,476


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 X Reply With Quote




Last Updated on December 8, 2012


© 2026 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 - Downloads - Top
no new posts