PRT trading order per time

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

    Hi Guys,

    I need your help of a possible simple question:

    How would be the code to take a order by time?

    I would like to set variables with an exact time. Then I want to buy or sell at the exact time. Lets say I want sell at 09:00, then I want buy at 10:30, sell at 15:00 and buy again at 17:00. So it is just to define the start time and sell or buy:

    Can anyone help me please???

    Thank you very much

    #52990 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    First you have to select your timeframe, in your example, it cannot be higher than 30 minutes. Here is an example to enter Long/Short at 09:00 and at 10:30, after having previously set your conditions:
    YourCondition = ....
    IF (time = 090000 OR time = 103000) AND YourCondition THEN
       BUY 1 CONTRACTS AT MARKET/SELLSHORT 1 CONTRACTS AT MARKET
    ENDIF
    Roberto
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

PRT trading order per time


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
kimbungle @kimbungle Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/16/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...