Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

noob question: about wizard made ordering program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    noob question: about wizard made ordering program

    so i have been working on learning to read the code and master the wizard. i have made many simple strategies, and now must ask a question. which i already am guessing that i will have to find the code somewhere buried in the forum, i have found tons already, i am working on mashing together a bunch of code to make the prefect trailing stop, so far i have edited out all of the bugs "it compiles so i am stoked on that".

    but as to my question, i have wizard a simple moving avg, enter/exit using closing and opening bar avg's, but the problem is that it buys and sells everybar. so i am wondering is this what you guys mean when you say to reset certain parameters?

    such as but not limited too?:
    sample one:
    You may want to also reset the has_reached_percentage like this:

    if(Position.MarketPosition == MarketPosition.Flat)
    {
    has_reached_percentage = false;
    }

    sample two:
    In addition, can you try "resetting" your stop loss values when the strategy is flat? Something like this:
    Code:
    if (Position.MarketPosition == MarketPosition.Flat)
    {
    SetStopLoss("lo", CalculationMode.Price, 0);
    }
    it make no sense as to why it would place an order everybar, the ma's are not even crossing???????

    #2
    jupiejupe, it sounds like you then you would need to work on your entry conditions for this -> are they setup with a CrossOver rule that would for example on be true for one bar, or did you check for < > so the conditions stays true and gets you in next bar again in the just 'stopped out' trade?

    Comment


      #3
      hmm, not sure that sounds like it could be it, i'll check. thanks

      Comment


        #4
        okay i checked but know i have not idea what you mean. unless what you are refering to is in the strategy properties?
        1. exit on close: true
        2. exit on close seconds: 30

        Comment


          #5
          jupiejupe, no I was referring to how you have setup your conditions for trade entry and exits, the condition sets in the wizard. Since most likely your condition stays true, it reenters immediately on the bar after the trail stop out. If you post a screenshot of what you have setup, we can take a further look.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          633 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          566 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X