Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Updated September 28, 2020
Top Posters
looks_one
StockT8er
with 10 posts (1 thanks)
looks_two
vmodus
with 6 posts (2 thanks)
looks_3
kinkeadfx
with 3 posts (0 thanks)
looks_4
ABCTG
with 2 posts (0 thanks)
trending_up
5,023 views
thumb_up
5 thanks given
group
5 followers
forum
21 posts
attach_file
4 attachments
July 5th, 2014, 07:36 PM
Amarillo, Texas, USA
Experience: Advanced
Platform: Ninjatrader, Multicharts
Broker: Amp Futures/CQG
Trading: YM 6E CL GC
Posts: 29 since Oct 2010
Thanks Given: 11
Thanks Received: 1
I am needing help coding a signal in easylanguage .
What i want is when you enable the signal:
Inputs would be ticks entryoffset and SessionTimes.
If the market moves up 10 price ticks it will Buy.
If the market moves down 10 price ticks it will Sell.
Pretty simple just need help with coding.
Thanks!
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
July 6th, 2014, 05:33 AM
Posts: 2,441 since Apr 2013
Thanks Given: 487
Thanks Received: 1,633
kinkeadfx,
post the code you need help with and I'll see if I can steer you into the right direction.
Regards,
ABCTG
July 6th, 2014, 11:47 AM
Amarillo, Texas, USA
Experience: Advanced
Platform: Ninjatrader, Multicharts
Broker: Amp Futures/CQG
Trading: YM 6E CL GC
Posts: 29 since Oct 2010
Thanks Given: 11
Thanks Received: 1
Here is what i have so far. I can not find any examples for what i am looking for.
inputs: ?
//enter position (only at the close of bar):
if barstatus(1) = 2 then begin
if marketposition = 0 and condition1 then
buy("enter long") next bar 1 contracts at close limit;
longentryprice = entryprice;
if marketposition = 0 and condition2 then
sellshort ("enter short") next bar 1 contracts at close limit;
shortentryprice = entryprice;
end;
July 6th, 2014, 01:52 PM
Posts: 2,441 since Apr 2013
Thanks Given: 487
Thanks Received: 1,633
Where do you check for the 10 tick move and what are condition1 and condition2 doing?
When you enable the strategy you can either save the current price and use this to trigger market orders when price moves higher or lower by 10 ticks.
Or you could send your limit orders right away using a limit price as close +/- 10 ticks.
Once one order is filled, you could kill the other or leave it depending on your needs.
Regards,
ABCTG
kinkeadfx
Here is what i have so far. I can not find any examples for what i am looking for.
inputs: ?
//enter position (only at the close of bar):
if barstatus(1) = 2 then begin
if marketposition = 0 and condition1 then
buy("enter long") next bar 1
contracts at close limit;
longentryprice = entryprice;
if marketposition = 0 and condition2 then
sellshort ("enter short") next bar 1 contracts at close limit;
shortentryprice = entryprice;
end;
July 6th, 2014, 03:51 PM
Amarillo, Texas, USA
Experience: Advanced
Platform: Ninjatrader, Multicharts
Broker: Amp Futures/CQG
Trading: YM 6E CL GC
Posts: 29 since Oct 2010
Thanks Given: 11
Thanks Received: 1
What i would like to do is set them up like multicharts has them.
Have a signal for LE and another for SE.
I already use stops and targets signal.
Could you possibly code the first one for me and i could code the other one that way i can see how to put the code together for myself.
July 18th, 2020, 09:47 PM
ROY, Utah
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6
OK, i want to create 2 different DEMA to interact with each other. How do I do this.
1st - with the length of 9
2nd - with the length of 12
July 19th, 2020, 08:47 PM
Somewhere, Delaware, USA
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853
StockT8er
OK, i want to create 2 different DEMA to interact with each other. How do I do this.
1st - with the length of 9
2nd - with the length of 12
What do you mean by 'interact with each other'? If you are just looking at indicators, then put two DEMA studies on the chart at the same time, with the different lengths on each indicator. Change the color for one so it is easier to tell the difference.
~vmodus
~vmodus
Enjoy everything!
July 20th, 2020, 07:38 AM
ROY, Utah
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6
I'm working with strategies, having them in different studies they do not talk to each other. However I figured that part out now I just need to formulate this formula into EasyLanguage
def isNaNaPrice = IsNaN(Cprice);
def AvarLength = Sum(!isNaNaPrice, DMAH_length);
def AvarSum = Sum(if isNaNaPrice then 0 else Cprice, DMAH_length);
plot DMA = if IsNaN(Cprice[1]) or AvarLength == 0 then Double.NaN else AvarSum / AvarLength;
DMA.DefineColor("Displaced", CreateColor(0, 30, 30)); #Lt.Gray
DMA.DefineColor("Effective", GetColor(5));
DMA.AssignValueColor(if isNaNaPrice then DMA.Color("Effective") else DMA.Color("Displaced"));
DMA.SetStyle(Curve.SHORT_DASH);
July 20th, 2020, 10:01 AM
Somewhere, Delaware, USA
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853
StockT8er
I'm working with strategies, having them in different studies they do not talk to each other. However I figured that part out now I just need to formulate this formula into
EasyLanguage
def isNaNaPrice = IsNaN(Cprice);
def AvarLength = Sum(!isNaNaPrice, DMAH_length);
def AvarSum = Sum(if isNaNaPrice then 0 else Cprice, DMAH_length);
plot DMA = if IsNaN(Cprice[1]) or AvarLength == 0 then Double.NaN else AvarSum / AvarLength;
DMA.DefineColor("Displaced", CreateColor(0, 30, 30)); #Lt.Gray
DMA.DefineColor("Effective", GetColor(5));
DMA.AssignValueColor(if isNaNaPrice then DMA.Color("Effective") else DMA.Color("Displaced"));
DMA.SetStyle(Curve.SHORT_DASH);
I don't know this origin language. If you can put it in plain English or pseudocode, then maybe I can help.
Also: are you using two charts, or just one chart with two different DEMA calculations?
~vmodus
~vmodus
Enjoy everything!
Last Updated on September 28, 2020