How to place a stop loss on the entry bar in EasyLanguage - futures io
futures io futures trading



How to place a stop loss on the entry bar in EasyLanguage


Discussion in Traders Hideout

Updated by edgefirst
    1. trending_up 727 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 10 replies
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

How to place a stop loss on the entry bar in EasyLanguage

(login for full post details)
  #1 (permalink)
Los Angels
 
Experience: Intermediate
Platform: MultiChart
Trading: Emini ES
 
Posts: 83 since Aug 2018
Thanks: 94 given, 53 received

How to place a stop loss/ profit with the entry.

In EasyLanguage the code enters on the next bar. How can I place a StopLoss and a Target at the same time?

The goal is to be able to hit the target during the entry bar.

Reply With Quote

Can you help answer these questions
from other members on futures io?
US OTCQB STOCK Brooker for UK BASED RESIDENT
Brokers
Conditions
ThinkOrSwim
NT8 Options Workspace SetUp-How to?
NinjaTrader
Want to learn about Superdrive Indicator
Traders Hideout
How to add a Text Label to the Floor Pivots Indicator in Tradestation
EasyLanguage Programming
 
 
(login for full post details)
  #2 (permalink)
Los Angels
 
Experience: Intermediate
Platform: MultiChart
Trading: Emini ES
 
Posts: 83 since Aug 2018
Thanks: 94 given, 53 received

Does anyone use Power Language? Looking for a tutorial. (Learning with a C# background)

Reply With Quote
 
(login for full post details)
  #3 (permalink)
Las Cruces, NM
 
Experience: Advanced
Platform: Tradestation, MC, NT
Broker: TradeStation, IB
Trading: Liquid futures contracts
 
Posts: 55 since Sep 2009
Thanks: 379 given, 83 received



SidewalkAerobics View Post
How to place a stop loss/ profit with the entry.

In EasyLanguage the code enters on the next bar. How can I place a StopLoss and a Target at the same time?

The goal is to be able to hit the target during the entry bar.

SetStoploss() should work on the entry bar.

Reply With Quote
The following user says Thank You to edgefirst for this post:
 
(login for full post details)
  #4 (permalink)
Los Angels
 
Experience: Intermediate
Platform: MultiChart
Trading: Emini ES
 
Posts: 83 since Aug 2018
Thanks: 94 given, 53 received


edgefirst View Post
SetStoploss() should work on the entry bar.

Using SetStoploss and SetProfitTarget do not place limit orders until the bar AFTER entry. On the entry bar, price can move through the stop or limit.

Do I need to adjust a setting?

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Las Cruces, NM
 
Experience: Advanced
Platform: Tradestation, MC, NT
Broker: TradeStation, IB
Trading: Liquid futures contracts
 
Posts: 55 since Sep 2009
Thanks: 379 given, 83 received


SidewalkAerobics View Post
Using SetStoploss and SetProfitTarget do not place limit orders until the bar AFTER entry. On the entry bar, price can move through the stop or limit.

Do I need to adjust a setting?

A simple example.


 
Code
if C > Highest(C, 20)[1] then buy next bar at market;

SetStoploss(400);
SetProfitTarget(500);

Reply With Quote
The following user says Thank You to edgefirst for this post:
 
(login for full post details)
  #6 (permalink)
Los Angels
 
Experience: Intermediate
Platform: MultiChart
Trading: Emini ES
 
Posts: 83 since Aug 2018
Thanks: 94 given, 53 received


edgefirst View Post
A simple example.


 
Code
if C > Highest(C, 20)[1] then buy next bar at market;

SetStoploss(400);
SetProfitTarget(500);

Thanks for the picture

Do you update at the close of a bar or continuously?

Reply With Quote
 
(login for full post details)
  #7 (permalink)
Las Cruces, NM
 
Experience: Advanced
Platform: Tradestation, MC, NT
Broker: TradeStation, IB
Trading: Liquid futures contracts
 
Posts: 55 since Sep 2009
Thanks: 379 given, 83 received


SidewalkAerobics View Post
Do you update at the close of a bar or continuously?

On the close. No IOG used.

Reply With Quote
The following user says Thank You to edgefirst for this post:
 
(login for full post details)
  #8 (permalink)
Los Angels
 
Experience: Intermediate
Platform: MultiChart
Trading: Emini ES
 
Posts: 83 since Aug 2018
Thanks: 94 given, 53 received


edgefirst View Post
On the close. No IOG used.

What setting are use to enable a reversal (multiple times) in the same bar on Multicharts?

I see the same bar reversals in the backtest, but do not see live orders for them when trading.

Reply With Quote
 
(login for full post details)
  #9 (permalink)
Las Cruces, NM
 
Experience: Advanced
Platform: Tradestation, MC, NT
Broker: TradeStation, IB
Trading: Liquid futures contracts
 
Posts: 55 since Sep 2009
Thanks: 379 given, 83 received


SidewalkAerobics View Post
What setting are use to enable a reversal (multiple times) in the same bar on Multicharts?

I see the same bar reversals in the backtest, but do not see live orders for them when trading.

It has been a long time since last time I used MC for live trading. In TradeStation, live trading matches simulation quite well.

Reply With Quote
The following user says Thank You to edgefirst for this post:
 
(login for full post details)
  #10 (permalink)
Los Angels
 
Experience: Intermediate
Platform: MultiChart
Trading: Emini ES
 
Posts: 83 since Aug 2018
Thanks: 94 given, 53 received



edgefirst View Post
It has been a long time since last time I used MC for live trading. In TradeStation, live trading matches simulation quite well.


Thanks edgefirst! Does Tradestation simulation show similar slippage results as live algo trading?

Any input you can provide on Tradestation would be appreciated.

Reply With Quote


futures io Trading Community Traders Hideout > How to place a stop loss on the entry bar in EasyLanguage


October 12, 2020


Upcoming Webinars and Events
 

Create an automated bot in 15 minutes w/SharkIndicators

Oct 29
 

Bookmap

Oct TBD
 

Carley Garner

Oct TBD
 

GruttePier

Oct TBD
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts