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

Everything posted by BrianA

  1. I have written some code with a friends help. But it compiles, but will not back test. (shows no trades) I am wondering if anyone would be willing to do a little mentoring via email with me. Brian
  2. I appreciate your help and anyone else who wants to add in. Brian
  3. 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
  4. What about??? Can a formula be written that take into account 2 charts? If X happens on a 15 minute chart and x happens on a hourly chart then do X. Can something like that be written? Brian
  5. What about the second bar? instead of next. Like, if close of second bar is greater than the open of next bar then....? Brian
  6. c[1] = close of the bar prior to the current one How would I reference the Next bar? Such as second bar after the price crosses over a moving average? Thanks Brian
  7. 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
  8. 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
  9. I think this will work 9day MA.pdf
  10. Here is a poor copy of the chart. Hope you can see it. Brian
  11. 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
  12. 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
  13. Thanks, but it seems to buy every bar after entry and sells them all when it crosses under. instead of just buying the entry and selling the exit? I do really appreciate your help Brian
  14. What if I wanted to wait for the second bar above the moving average before I entered the trade? I have tried every way my limited ability allows, but no luck Thanks Brian
  15. Thanks! I think I can make this work. If not do you mind a few more questions? But I am hoping I can do it myself. Brian
  16. 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.