Problem with Entryprice? ideas/suggestion? - EasyLanguage Programming | futures.io
futures io futures trading


Problem with Entryprice? ideas/suggestion?
Started: by angbc22 Views / Replies:242 / 8
Last Reply: Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Problem with Entryprice? ideas/suggestion?

  #1 (permalink)
Trading Apprentice
penang, Malaysia
 
Futures Experience: Intermediate
Platform: Tradestation
Favorite Futures: Mini HS, A50, Commodity, FCPO
 
Posts: 4 since Mar 2016
Thanks: 2 given, 0 received

Problem with Entryprice? ideas/suggestion?

Coding as below :
......
if <condition = true> then Buy ("L") next Bar high stop;

if next bar high is 2000 and order is triggered. Entryprice will be 2000.

my question is, if anyway to amend my entryprice to other figure Ex: 1995 instead of 2000.

Thanks

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,257 since Apr 2013
Thanks: 201 given, 707 received


angbc22,

I am not sure if I correctly understand your request, but you could use a limit order and specify a limit price. However this doesn't guarantee you a fill of course.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Trading Apprentice
penang, Malaysia
 
Futures Experience: Intermediate
Platform: Tradestation
Favorite Futures: Mini HS, A50, Commodity, FCPO
 
Posts: 4 since Mar 2016
Thanks: 2 given, 0 received

Hi ABCTG,

let take it simple, after my order triggered and entryprice set as condition filled. it's possible for me to amend the specific entryprice after this.

Ex : Entryprice = 1995;

After I verify, an error occur as " This word cannot start a statement"

Reply With Quote
 
  #5 (permalink)
Elite Member
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,257 since Apr 2013
Thanks: 201 given, 707 received

Futures Edge on FIO

What value do you place on the webinars on FIO?

 
angbc22,

you can't change the value for this reserved word, it only returns a value i.e. the EntryPrice of your current position.
By the way, you can show your appreciation for pots on futures.io by clicking the "Thanks" button next to it.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #6 (permalink)
Trading Apprentice
penang, Malaysia
 
Futures Experience: Intermediate
Platform: Tradestation
Favorite Futures: Mini HS, A50, Commodity, FCPO
 
Posts: 4 since Mar 2016
Thanks: 2 given, 0 received

I think can refer to below coding and do modification :

Vars:ONBlimit(false), ONBstop(false), ONBlimit2(false),
ONBstop2(false), ONBlimitvalue(0), ONBstopvalue(0);

ONBlimitvalue=High+4 points; {Replace with your own point values}
ONBstopvalue=High+2 points; {Replace with your own point values}

ONBlimit= Open of next Bar >= ONBlimitvalue;
ONBstop= Open of next Bar<= ONBstopvlaue;
ONBlimit2= Open of next Bar <= ONBlimitvalue;
ONBstop2= Open of next Bar>= ONBstopvlaue;

If ONBlimit then buy next bar at ONBlimitvalue limit
else If ONBstop then buy next bar at ONBstopvlaue stop
else if ONBlimit2 and ONBstop2 then buy next bar at market;
***********************************************

Reply With Quote
 
  #7 (permalink)
Elite Member
Newark DE
 
Futures Experience: Advanced
Platform: Multicharts
Favorite Futures: the Future
 
Posts: 4 since Dec 2015
Thanks: 0 given, 0 received

Are you trying to have it "this price or better" -aka limit order?

or "this price or worse" -aka stop order?

You can always reference a price point as a variable and add or subtract from it for a limit or stop order. It's just a matter of which side you are trying to be on, and, if you're trying to submit the order in advance of a bar close referencing the next bar close or price level reach, or at bar close with market level reached.

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
penang, Malaysia
 
Futures Experience: Intermediate
Platform: Tradestation
Favorite Futures: Mini HS, A50, Commodity, FCPO
 
Posts: 4 since Mar 2016
Thanks: 2 given, 0 received

My point is i want to submit stop limit order instead of stop order. As I understand Tradestation 2000i only can submit stop or limit order. In order to submit stop limit order, we need to write a simple coding.

My other intention is, when i put stop order i always want to be certain point triggered a head. Ex: If my order is Buy Stop at 1500, I always need my strategy triggered my order at 1498 ( 2 points a head ) but triggered price need to be set at 1500. This is to protect some slippage issue when i proceed the back test.

Any suggestion ? Thx

Reply With Quote
 
  #9 (permalink)
Elite Member
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,257 since Apr 2013
Thanks: 201 given, 707 received

angbc22,

if I recall correctly TS 2000i doesn't have intrabar order generation, so you could only issue your limit order at the end of the bar that triggered your "stop condition". I am not sure how many setups you'd miss that way, simply because price already moved away from you. As you work with 2000i, you might want to take a look at Multicharts, as it will feel quite familiar plus gives you stop limit orders natively.

Regards,

ABCTG

Reply With Quote

Reply



futures io > > > > > Problem with Entryprice? ideas/suggestion?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

PTMC Protrader Platform First Look w/Sergey Sokolov

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
entryprice = 0 when using set percent trailing hangtime15 EasyLanguage Programming 4 July 20th, 2015 01:57 AM
EntryPrice for added positions whuff99 EasyLanguage Programming 2 February 14th, 2015 05:16 AM
EntryPrice vs. ExitPrice ivanyu MultiCharts 1 September 29th, 2013 09:26 AM
Historical EntryPrice becomes 0, when Auto Trading turned on ivanyu MultiCharts 1 August 23rd, 2013 09:07 AM
Suggestion for Calendar events jupiejupe Feedback and Announcements 3 April 12th, 2013 04:15 AM


All times are GMT -4. The time now is 01:52 PM.

no new posts
Page generated 2017-03-25 in 0.13 seconds with 19 queries on phoenix via your IP 54.205.126.164