different timescales for 1 trade

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #191847 quote
    alejandrocorbut
    Participant
    New

    is it possible to create an ‘automatic trade’ using different timescales with the same security? i.e. MACD from FTSE 1 hour, FTSE 30 MINS AND FTSE 5 MINS all being above a certain value to trigger a buy order. I can do this with the manual trading/ triggers/ alerts in Pro Real Time but I can’t seem to set up the order with multiple time scales within the auto trading.

    #191848 quote
    nonetheless
    Participant
    Master

    you have to use multi-timeframe (MTF), it will look something like the example below.

    You have to run the system on a timeframe that can be divided into all other timeframes; in this case that would mean 5minute, 1 minute, 30 seconds etc

    you can read more about MTF here:

    https://www.prorealcode.com/topic/multi-timeframe-mtf-indicators-for-prorealtime/

     

    TIMEFRAME(1 hour)
    cb1 = (your 1 hour conditions)
    
    TIMEFRAME(30 minutes)
    cb2 = (your 30 minute conditions)
    
    TIMEFRAME(5 minutes)
    cb3 = (your 5 minute conditions)
    
    if cb1 and cb2 and cb3 then
    buy 1 contract at market
    endif
    #191850 quote
    alejandrocorbut
    Participant
    New

    thank you for this

     

    very helpful

     

    what is the difference between….

    timeframe(1 hour,updateonclose) and timeframe(1 hour) ?

    #191853 quote
    nonetheless
    Participant
    Master

    timeframe(1 hour, updateonclose) means that your conditions can only be met at the end of the 1h candle

    with timeframe(1 hour) your conditions can be met at any time within the 1h candle while it is still forming.

    #191858 quote
    Nicolas
    Keymaster
    Master

    Topic how-to automated trading with MTF: First approach to multi timeframe trading with ProRealTime

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

different timescales for 1 trade


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Nicolas
3 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/18/2022
Status: Active
Attachments: No files
Logo Logo
Loading...