How to implement this? - futures io
futures io



How to implement this?


Discussion in MultiCharts

Updated
    1. trending_up 376 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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 implement this?

(login for full post details)
  #1 (permalink)
r41866
Cypress Texas/USA
 
 
Posts: 10 since Mar 2021
Thanks: 0 given, 1 received

I want to do the following to submit my orders quickly.

1. Check the current bar to see whether it is a bullish bar.

2. If it is, get the high and low of the bar. Use High - Low + 2 ticks as the risk, to see whether the bar is too large for the maximum risk I can tolerate.

3. If the risk is ok, place a stop market order 1 tick above the High the moment the next bar is opened.

4. If the risk is too large, after the current bar is closed, wait for the break of the High of the current bar. Once the High is broken, place a limit order according to the maximum risk.

I am pretty new to Multicharts programming. Please let me know the frame work of this flow. I currently have no idea because this seems to require 2 or 3 entry strategies and I don't know what to do if that's the case.

Thanks.

Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(112 thanks from 18 posts)
looks_twoSalao's Journalby Salao
(36 thanks from 8 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(32 thanks from 13 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(14 thanks from 9 posts)
looks_5Maybe a little bit different journalby Malykubo
(9 thanks from 9 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Would You Sell Your System?
75 thanks
Big Mike in Ecuador
57 thanks
The Crude Dude Oil Trading System
50 thanks
The New Micro Contract - MICRO BITCOIN coming May 2021
25 thanks
futures io site changelog and issues/problem reporting
24 thanks
 
(login for full post details)
  #2 (permalink)
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
 
Posts: 90 since Sep 2016
Thanks: 7 given, 32 received


r41866 View Post
I want to do the following to submit my orders quickly.

1. Check the current bar to see whether it is a bullish bar.

2. If it is, get the high and low of the bar. Use High - Low + 2 ticks as the risk, to see whether the bar is too large for the maximum risk I can tolerate.

3. If the risk is ok, place a stop market order 1 tick above the High the moment the next bar is opened.

4. If the risk is too large, after the current bar is closed, wait for the break of the High of the current bar. Once the High is broken, place a limit order according to the maximum risk.

I am pretty new to Multicharts programming. Please let me know the frame work of this flow. I currently have no idea because this seems to require 2 or 3 entry strategies and I don't know what to do if that's the case.

Thanks.


I'm at work, so can't verify that this works, but this might get you started in the right direction
 
Code
inputs:
myrisk$(100);
vars: risk2points(0), bulls(false), bears(false), risk(0);

risk2points = myrisk$ / bigpointvalue;

if open > close then begin
    risk = (high-low+2 * minmove) * bigpointvalue;
       if risk < myrisk$ then buy next bar at high + 1 point stop;
       if risk > myrisk$ then buy next bar at low + risk2points;
end;

Follow me on Twitter Reply With Quote
 
(login for full post details)
  #3 (permalink)
r41866
Cypress Texas/USA
 
 
Posts: 10 since Mar 2021
Thanks: 0 given, 1 received


Thank you for the response. However, it won't work according to my plan. If the risk is larger then the risk tolerance, I want the strategy to wait for the break of the current bar and then place a limit order. However, your code places the limit order even if the high of the current bar is not broken.


kjhosken View Post
I'm at work, so can't verify that this works, but this might get you started in the right direction
 
Code
inputs:
myrisk$(100);
vars: risk2points(0), bulls(false), bears(false), risk(0);

risk2points = myrisk$ / bigpointvalue;

if open > close then begin
    risk = (high-low+2 * minmove) * bigpointvalue;
       if risk < myrisk$ then buy next bar at high + 1 point stop;
       if risk > myrisk$ then buy next bar at low + risk2points;
end;


Reply With Quote


futures io Trading Community Platforms and Indicators MultiCharts > How to implement this?


Last Updated on March 8, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April

Seven Trading Mistakes Solved With Smart Trading Tools w/Brannigan Barrett

Elite only
     



Copyright © 2021 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