NexusFi: Find Your Edge


Home Menu

 





No orders issued using Buy Stop (Part 2)


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one arjfca with 3 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (1 thanks)
    4. looks_4 Jeff65 with 1 posts (1 thanks)
    1. trending_up 2,706 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

No orders issued using Buy Stop (Part 2)

(login for full post details)
  #1 (permalink)
 arjfca 
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
Posts: 263 since Sep 2010
Thanks Given: 440
Thanks Received: 91

Hello again


As mentionned in my last post, I'm trying to code my system to put stop oders. Entry should be done if stropon a stop I did they modification suggested by Jeff, but still no orders

 
Code
IfHavelong=truethenbegin
 Ifbarnumber=53thenprint(date:0:0," ",time:0:0,MyPosition," Par:",PAR," Ety", Pricetargetl:0:5," ISL",ISLL:0:5," QTY",qty:0:0);
 BuynextbarQTYcontractsatPriceTargetLstop;
 Setstoploss(Par*Qty*BigPointValue);
end;
My process
- All value is calculated after the end of the bar using
 
Code
If Barstatus[1] = 2;
- IntrabarOrderGeneration = True

- I did look on the chart and found a bar that fulfill my rules

- I created a print line to show that my targeted bar was detected as an entry and all parameters well calculated

- Did look the marketposition just before the targeted bar

- Price on the nextbar did go over my stop target by 10 pips so it should had triggerd the stop entry

- Did look after the targeted barnumber and the marketposition had not change

I'm in the dark... Don't know what to test now


Any help or hint greatly appreciated
Martin

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ISO Equity Curve Indicator
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
Volume profile TradeStation
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Supertradersams Thread Journal on NQ/MNQ
28 thanks
GFIs1 1 DAX trade per day journal
26 thanks
Diary of a simple price action trader
13 thanks
Tao te Trade: way of the WLD
12 thanks
Deaddogs Stock Trading
12 thanks

(login for full post details)
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Posts: 50,232 since Jun 2009
Thanks Given: 33,103
Thanks Received: 101,344


Hi,

The code you posted is badly formatted.

Best thing to do is paste it into Notepad, which will strip formatting like colors and stuff, and then copy it from notepad and paste it into forum, wrapping it around the code tags. That way it will be legible.

Can you also include more of the signal so we can see what you are trying to do.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor


For the best trading education, watch our webinars
Searching for trading reviews? Review this list


Lifetime Elite Membership: Sign-up for only $149 USD
Receive exclusive offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
(login for full post details)
  #4 (permalink)
 arjfca 
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
Posts: 263 since Sep 2010
Thanks Given: 440
Thanks Received: 91

Hello Mike

Thank for the formating trick, I did tried to play with format on some post, but never tougth to copy on NotePad.

I will work on my strategy program steps to see why there is no orders send. My program is quite long and I dont want to abuse and mixup with to much informations.

I will see If to lean and send only the appropriate lines.

Best wish of happiness and success for the New Year .

Martin

Started this thread Reply With Quote
(login for full post details)
  #5 (permalink)
Jeff65
Gurnee, IL
 
Posts: 46 since Apr 2010
Thanks Given: 17
Thanks Received: 97

I'm not sure what the variable PAR is. Is it a price? Or is it a number representing ticks? Can you display what the print statement printed? Also did you use "setstopcontract" in your code?


arjfca View Post
Hello again


As mentionned in my last post, I'm trying to code my system to put stop oders. Entry should be done if stropon a stop I did they modification suggested by Jeff, but still no orders

 
Code
IfHavelong=truethenbegin
 Ifbarnumber=53thenprint(date:0:0," ",time:0:0,MyPosition," Par:",PAR," Ety", Pricetargetl:0:5," ISL",ISLL:0:5," QTY",qty:0:0);
 BuynextbarQTYcontractsatPriceTargetLstop;
 Setstoploss(Par*Qty*BigPointValue);
end;
My process
- All value is calculated after the end of the bar using
 
Code
If Barstatus[1] = 2;
- IntrabarOrderGeneration = True

- I did look on the chart and found a bar that fulfill my rules

- I created a print line to show that my targeted bar was detected as an entry and all parameters well calculated

- Did look the marketposition just before the targeted bar

- Price on the nextbar did go over my stop target by 10 pips so it should had triggerd the stop entry

- Did look after the targeted barnumber and the marketposition had not change

I'm in the dark... Don't know what to test now


Any help or hint greatly appreciated
Martin


Reply With Quote
The following user says Thank You to Jeff65 for this post:
(login for full post details)
  #6 (permalink)
 arjfca 
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
Posts: 263 since Sep 2010
Thanks Given: 440
Thanks Received: 91

Jeff,

PAR : Pip At Risk. My Fix Dollars Amount / PAR will give me how many units to buy or sell

PAR: Is the range of my setup bar + 2pips + spread. So, yes it is not a fix number.


I have done many test and still not been able to see my "stop entry" activated i when it should had.

I will post later an updated (clearer) code

Martin

Started this thread Reply With Quote





Last Updated on December 17, 2010


© 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