order on 10 sec but trend is on hourly candle

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #84775 quote
    rama
    Participant
    Senior

    As we all know pro real time places orders at only time intervals.

    I want to trade in a trending market.

    if the hourly candle is going down say for 8 am to 9 am

    if the trend is down and say market is going down by 100 points

    I want to sell at x-10, x-20, x-30 where is x is the price at the beginning of the hourly candle

    I want to place the  order in 15 seconds

     

    the reason for this I want to keep moving my stop losses for individual orders in my favor( which is not possible on cumulative orders on hourly candle)

    #84776 quote
    robertogozzi
    Moderator
    Master

    You have to use the recent MTF (Multiple Time Frame) feature and use 10 seconds as the main TF, within your strategy you will then be able to use any other higher TF provided it’s multiple of 10 seconds.

    Unfortunately this will lower your data history to just a few days when backtesting.

    If you search MTF you will find many examples and videos.

    #84821 quote
    Nicolas
    Keymaster
    Master

    A simple example of a MTF strategy code is available here: https://www.prorealcode.com/topic/echelle-de-temps-multiples/#post-82039

    #120909 quote
    VN
    Participant
    Average

    Hi Nicolas, I am trying to do something similar but my base timeframe is at 1 min and I want to use a 30 second time period to evaluate a number of conditions, but it when I tried running the code it is saying that all timeframes used in the code must be multiples of the base timeframe. I tried doing it on 10 sec and also on 1 second and it still not liking it.

    Is this to be expected?

    #120910 quote
    Vonasi
    Moderator
    Master

    You must launch your strategy on the fastest time frame and make sure that all time frames used in the strategy can be divided into each other.

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

order on 10 sec but trend is on hourly candle


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
rama @rama Participant
Summary

This topic contains 4 replies,
has 5 voices, and was last updated by Vonasi
5 years, 12 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/13/2018
Status: Active
Attachments: No files
Logo Logo
Loading...