4-hour eur/usd strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9145 quote
    Pjotterd
    Participant
    Average

    Hi all,

    Can somebody help me out? I want to backtest the following on a 4 hour eur/usd chart. Can somebody send me the code for this?

    If the last bar ends in green (rises), I want to open a long trade.
    If the last bar ends in red (falls), I want to open a short trade.

    Thanks in advance,
    Pieter

    #9155 quote
    Adolfo
    Participant
    Senior

    Hi Pjotterd,

    IF close>open then
    Buy at market
    Endif
    If close<open then
    Sellshort at market
    Endif

    This code meet your conditions.

    Greetings!

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

4-hour eur/usd strategy


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Pjotterd @pjotterd Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Adolfo
9 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/09/2016
Status: Active
Attachments: No files
Logo Logo
Loading...