simple stratgy - futures io
futures io futures trading



simple stratgy


Discussion in EasyLanguage Programming

Updated by musuk
      Top Posters
    1. looks_one musuk with 3 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 kzaorski with 1 posts (1 thanks)
    4. looks_4 cory with 1 posts (0 thanks)
    1. trending_up 1,304 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 6 replies
    2. attach_file 0 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
 

simple stratgy

(login for full post details)
  #1 (permalink)
uk, london
 
Experience: Beginner
Platform: Multicharts
Trading: forex
 
Posts: 28 since Sep 2011
Thanks: 6 given, 2 received

hi every one

i want to build a signal that it buy when the current bar start counting the numbers of previose bars and if it higher then it will buy and same when it sale to close.
i think its easey but i have no idea how to do it.

thanks

Reply With Quote

Can you help answer these questions
from other members on futures io?
help to convert from thinkscript to ninjascript
NinjaTrader
GBP/ARS Pair
Traders Hideout
RENKO 60 min settings
MultiCharts
Looking freelancer for MT4 Indicator
Platforms and Indicators
is there an easy way to obtain by code the price variation percentual
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Legal question and need desperate help
183 thanks
Building a high-performance data system
18 thanks
FIO Journal Challenge - June 2020 w/SharkIndicators
15 thanks
Is Orderflow An Outdated Concept?
11 thanks
VWAP for stock index futures trading?
11 thanks
 
(login for full post details)
  #3 (permalink)
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 838 received


Are you saying that if you define your entry criteria as 8, then if the last 8 bars are up bars then it will buy at the open of the ninth bar? To let you know, I have analyzed the crap out of bar data and can tell you that over time there is a 50% chance that the next bar will be an up bar and a 50% chance it will be a down bar, regardless of how many of the previous bars were consecutively up or down, i.e. the probabilities are always the same as flipping a coin. To account for the overall change in price, there is a very small differential in the percentages and/or average size of the bars, but nothing that can be readily exploited after consideration of slippage and commissions.

That said, you can create this easily using the strategy wizard, just add a condition that Close > Open 1 bar ago, then add another condition for 2 bars ago, etc.

Reply With Quote
The following user says Thank You to vegasfoster for this post:
 
(login for full post details)
  #4 (permalink)
uk, london
 
Experience: Beginner
Platform: Multicharts
Trading: forex
 
Posts: 28 since Sep 2011
Thanks: 6 given, 2 received

thanks for ur reply

i know that its 50% win or loose but i just want to create an aidea in my head so if any one can just write it for me or just give some notes that will be nice

thanks

Reply With Quote
 
(login for full post details)
  #5 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 5,998 since Jun 2009
Thanks: 831 given, 7,832 received


musuk View Post
thanks for ur reply

i know that its 50% win or loose but i just want to create an aidea in my head so if any one can just write it for me or just give some notes that will be nice

thanks

check this out

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Warsaw, Poland
 
Experience: Beginner
Platform: MultiCharts
Broker: IB, IQFeed
Trading: TF
 
Posts: 5 since Aug 2011
Thanks: 13 given, 6 received


musuk View Post
hi every one

i want to build a signal that it buy when the current bar start counting the numbers of previose bars and if it higher then it will buy and same when it sale to close.
i think its easey but i have no idea how to do it.

thanks

Maybe try this:

 
Code
inputs: TP$(100), SL$(100), _BackBars(5);
variable: quantity(1), nBars(0);

For nBars = 0 to _BackBars begin
	if H[nBars] > H[nBars + 1] then begin
		condition1 = true;
	end	
	else begin
		condition1 = false;
	break;
	end;
end;
For nBars = 0 to _BackBars begin
	if H[nBars] < H[nBars + 1] then begin
		condition2 = true;
	end	
	else begin
		condition2 = false;
	break;
	end;
end;

if condition1 then begin
	Buy quantity contracts Next Bar At market;
end;

if condition2 then begin
	SellShort quantity contracts Next Bar At market;
end;		

setstopposition;
setprofittarget(TP$);
setstoploss(SL$);

Reply With Quote
The following user says Thank You to kzaorski for this post:
 
(login for full post details)
  #7 (permalink)
uk, london
 
Experience: Beginner
Platform: Multicharts
Trading: forex
 
Posts: 28 since Sep 2011
Thanks: 6 given, 2 received

thanks for ur reply i will try this.

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > simple stratgy


January 1, 2012


Upcoming Webinars and Events
 

Getting Comfortable with Price Action Patterns w/Earn2Trade

Aug 4
 

Live Video Panel: Ask Me Anything w/Ironbeam Brokerage

Aug 6
     



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