NexusFi: Find Your Edge


Home Menu

 





Question about writing code in Easy language


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one will4 with 29 posts (1 thanks)
    2. looks_two ABCTG with 26 posts (14 thanks)
    3. looks_3 Jura with 1 posts (1 thanks)
    4. looks_4 kevinkdog with 1 posts (1 thanks)
      Best Posters
    1. looks_one kevinkdog with 1 thanks per post
    2. looks_two Jura with 1 thanks per post
    3. looks_3 ABCTG with 0.5 thanks per post
    4. looks_4 will4 with 0 thanks per post
    1. trending_up 11,624 views
    2. thumb_up 17 thanks given
    3. group 4 followers
    1. forum 58 posts
    2. attach_file 0 attachments




 
Search this Thread

Question about writing code in Easy language

  #31 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

Hi will4,

there is no reserved word to accomplish that, you simply have to ensure that your conditions stay present. You wrote your second code to only have the condition that triggers the order present for one bar on the last bar only, hence your code is doing exactly that.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
 
  #32 (permalink)
will4
sydney,Australila
 
Posts: 31 since Jun 2017
Thanks Given: 13
Thanks Received: 1


ABCTG View Post
Hi will4,

there is no reserved word to accomplish that, you simply have to ensure that your conditions stay present. You wrote your second code to only have the condition that triggers the order present for one bar on the last bar only, hence your code is doing exactly that.

Regards,

ABCTG

Hi ,
How can I write it in a way to be sure that condition stays present? Danke

Reply With Quote
  #33 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


Hi will4,

your code that adjusts the order prices is an example of keeping the condition present. What you use is totally up to you and depends on your logic.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #34 (permalink)
will4
sydney,Australila
 
Posts: 31 since Jun 2017
Thanks Given: 13
Thanks Received: 1


ABCTG View Post
Hi will4,

your code that adjusts the order prices is an example of keeping the condition present. What you use is totally up to you and depends on your logic.

Regards,

ABCTG

I have adjusted the order prices by this two variables:
var2=Close+200 points ;
var1=Close-200 points;
but even these two variables are based on close price and they are changing?

Regards,
will4

Reply With Quote
  #35 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

Hi will4,

that's correct, as it will always be updated with the most recent Close.
You could use the logic I posted in #4.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #36 (permalink)
will4
sydney,Australila
 
Posts: 31 since Jun 2017
Thanks Given: 13
Thanks Received: 1


ABCTG View Post
Hi will4,

that's correct, as it will always be updated with the most recent Close.
You could use the logic I posted in #4.

Regards,

ABCTG

I know your logic was " to ensure that your conditions stay present" but would you mind if I ask you how I can do that in Easylanguage?danke

Regards,
Will4

Reply With Quote
  #37 (permalink)
will4
sydney,Australila
 
Posts: 31 since Jun 2017
Thanks Given: 13
Thanks Received: 1


ABCTG View Post
Hi will4,

that's correct, as it will always be updated with the most recent Close.
You could use the logic I posted in #4.

Regards,

ABCTG

I know your logic was " to ensure that your conditions stay present" but Would you mind if I ask you how I can do that in Easylanguage?I have tried maxbarsback and [] but they are about the past not about the future.danke

Regards,
Will4

Reply With Quote
  #38 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

will4,

that depends on your conditions and I am afraid I don't know them. An example of a condition that remains present is your code 1 in post #24.

My suggestion for you would be to write a code that follows the logic in post #4 as a first step.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #39 (permalink)
will4
sydney,Australila
 
Posts: 31 since Jun 2017
Thanks Given: 13
Thanks Received: 1


ABCTG View Post
will4,

that depends on your conditions and I am afraid I don't know them. An example of a condition that remains present is your code 1 in post #24.

My suggestion for you would be to write a code that follows the logic in post #4 as a first step.

Regards,

ABCTG

When you say #24 and #4,how can I find them ?

Reply With Quote
  #40 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


Hi will4,

each post in a thread has a number assigned to it (it can be found in the upper right corner of each post). The first post gets #1 and so on.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on July 14, 2017


© 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