Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

BrianA

Members
  • Content Count

    16
  • Joined

  • Last visited

Posts posted by BrianA


  1. I assume you would put that Data1= at the top of the formula like when I start a strategy with

     

    Value1= average (Close,50)

     

     

    I tried data1= (60min chart) but that language is wrong I think?

     

    Brian

     

    I did order some books so maybe I can stop bugging you guys!

     

    Brian


  2. Thanks, I have most of the PDFs and have been working to seach them to help me write the code.

     

    Posted Before;

     

    value1=AverageFC(c,20);

     

     

    if c[1]>value1[1] and c>value1 then sell next bar at market;

    if c[1]<value1[1] and c<value1 then buy next bar at market;

     

    In looking at this code that was posted for me before and it seems that c[1}> value1 means if the close of bar 1 > than MA 2 then sell next bar at market?

     

    Then?? would c[2]>value1 mean second bar > Value1??

     

    Then if I want the two bars c[1} & c[2] to both be positive, would I say c[1]>than value1 and c[2]> c[1] that would mean the first bar is above the MA and the second bar is more than the previous?? And use that to trigger a buy or sell?

     

    Thanks

    Brian


  3. When I used this code

     

    value1=average(c,20);

     

    if c[1]>value1[1] and c>value1 then sell next bar at market;

    if c[1]<value1[1] and c<value1 then buy next bar at market;

     

    It bought or sold multiple times. I am trying to get one entrance and one exit.

     

     

    Here is what I think I am trying to do.

     

    When the second negative bar crosses below the MA ( or when the second bar below the 9ma is negative) Sell short.

     

    (Exit trade)

    When the second positive bar crosses above the 9ma then buy to close the trade.

     

     

    I also would not mind knowing how to just reverse direction instead of exiting the trade.

     

    Is this a bit more clear?

     

    Thanks again

     

    Brian


  4. Here is a chart with an idea what I am trying to do. Hope this makes it a bit more clear.

     

    Again,

    Thank you guys for your time I really appreciate your time. I am trying to learn Easy language, but from the few sources I have it is difficult.

     

    I hope the chart shows up.

     

    Brian9day MA.pdf


  5. What I am trying to write is

     

    Buy when second bar is above the nine day moving average and exit or sell when the second bar is below the 9 day moving average.

     

    I would like to get out before it crosses below the 9 but not sure how to put it in to words that translate into easy language.

     

    Thanks

    Brian


  6. I am working on a strategy for Open E cry. I have the beginning but I am having trouble writing my next step. I want it to say

     

    "when price moves above moving average X sell second bar"

     

    If you could help that would be great or send me a PM.

     

    Thanks

     

    Brian

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.