Announcement

Collapse
No announcement yet.

MACD (profit target)

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

  • MACD (profit target)

    I am working on a formula based on macd and with the help of you guys in here I am close to getting to a really good result.
    Now, there is only one bit missing and that is to put a profit target on it in order to work on backtesting, cause untill now i do all the counting by hand.
    please help me!
    i need to put a profit target of 3 points in each trade that comes up.
    Here is the formula so far:


    please help me to finish it!
    Attached Files

  • #2
    please!!
    i need some help here!
    its quite urgent, cause my futuresource subscription expires tomorrow and if i get an answer on that specific problem i will switch over to e-signal, otherwise i will not know what to do and i will have to wait for an extra month!
    Alexis, or somebody, help!

    Comment


    • #3
      Is there anybody who can help me put a profit target of 3 points in the formula below??

      Comment


      • #4
        I am not familiar enough with the formula wizard to provide you very good guidance in that format, but here is an excerpt of code that I am using to test stops and profit targets.

        PHP Code:
        // Checking Stops and Profit Targets
            
        if (Strategy.isShort() == true){//we are in a short
                
        if((high() - sEntry) >= STOffset){//stopped out
                    
        sAction "Short Stop Exit";sType "Cover";
                    
        Strategy.doCover(sAction,Strategy.HIGHStrategy.THISBAR,Strategy.ALL);
                }
                
                if ((
        sEntry low()) > PTOffset){//profit target
                    
        sAction "Short PT Exit";sType "Cover";
                    
        Strategy.doCover(sAction,Strategy.LOWStrategy.THISBAR,Strategy.ALL);
                }
            } 
        I hope this helps out

        Comment


        • #5
          Thanks a lot.
          though i do not know how to attach it to the formula below
          Attached Files

          Comment

          Working...
          X