4-hour eur/usd strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9145 quote
    PjotterdPjotterd
    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
    AdolfoAdolfo
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 AdolfoAdolfo
10 years, 3 months ago.

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