Doji and Hammer Trading systems

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13073 quote
    Vish
    Participant
    New

    Hi,

    Does anyone uses Doji and hammer indicators in trading system ? I have figured out the basuc operational trigger but struggling to set up stop loss and profit parameters. Here is the logic for reference:

    IF close>open and high=close and (open-low)>=3*(close-open) THEN
    //Detection of Hammer / Black hanging man
    Result=1

    ELSEIF close > open and high > close and (open – low) >= 3*(high-close) THEN
    // Detection of Doji
    Result=2

    Idea is to setup stop loss 4 points below the low. I tried lot of combinations but doesn’t seem to work. I will really appreciate if someone can help me on this forum. Thanks…

    #13074 quote
    Nicolas
    Keymaster
    Master

    To calculate the stoploss value, you’ll have to find the difference between the price when the trade is initiated and the level where you want it to be set:

    stoploss = close-(low-4*pipsize)

    Then add this stop value to your order:

    SET STOP LOSS stoploss
    #13081 quote
    Vish
    Participant
    New

    Thanks Nic. Do i need to define pipsize as a variable or it picks it up automatically ? Sorry If its a basic question. I am quite new to this system.

    #13094 quote
    Nicolas
    Keymaster
    Master

    Nope, pipsize is a built-in instruction. PIPSIZE

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Doji and Hammer Trading systems


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
Vish @vishal_sharma Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Nicolas
9 years, 5 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 09/14/2016
Status: Active
Attachments: No files
Logo Logo
Loading...