How to buy/sell immediately if certain conditions are met?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #74144 quote
    chichihang
    Participant
    New

    Hi everyone,

    I’m a beginner and have a very simple question…hope if anyone could help

    If I’d like to long or short immediately when certain conditions are met instead of waiting for next candle start, what function I should use?

    Thanks so much!

    If c1 then
    buy 1 contracts at market
    endif
    
    If c2 then
    sell 1 contracts at market
    endif
    #74146 quote
    Vonasi
    Moderator
    Master

    This is not possible in PRT at the moment. All decisions are made at candle close and positions opened at the opening of the next candle. You can set STOP and LIMIT orders so that a position is only opened at a certain price but this will still not happen until the candle following the one where the condition is met. Note: STOP and LIMIT orders must be renewed at each candle to stay on the market.

    When multi-time-frame is introduced to PRT later this year then it will be possible to enter midway through say a four hour candle based on an indicator condition being met on say a five minute candle close.

    chichihang thanked this post
    #74147 quote
    chichihang
    Participant
    New

    Thanks Vonasi!

    so disappointed to hear learn that PRT only allow buy/sell at next candle starts : (

    Actually my strategy is very simple.. it’s all done on same time frame instead of multiple timeframes

    if current price is lower than BB low for certain points, long immediately with stop loss at certain points
    oppositely, if current price is higher than BB up for certain points, short immediately with stop loss at certain points

    #74175 quote
    BC
    Participant
    Master

    Hi Hang

    Sledom meet HK friend here, may I know what market u plan to play?

    #74179 quote
    chichihang
    Participant
    New

    Bin 你好

    Nice to meet you here!! I usually play HSI, HHI with a local broker, also DJ, DAX with IG

    How about you? Are you making any success with PRT?

    #74187 quote
    robertogozzi
    Moderator
    Master

    You are going a bit off topic, I suggest that you start a new topic in the general forum.

    Thank you.

    #74188 quote
    BC
    Participant
    Master

    Hi Hang

    Nice to meet u here too, I mainly focus on DJ, HSI, FTSE, USD/JPY with IG.

    IG charge not cheap, espacially HSI when compare with 耀才, also Prorealtime not support partial close, multi time frame, array, machine learning….but IG margin rate really low, 門檻低、PRT programing language easy to learn and most important is this forum bring PRT lover so many valuable knowledge.

    I firstly start PRT auto algo form 2016 September, “luckily” got over 100% return within 5 months, and then drop into dark side with wrong money managment, walk foward re-optimize time frame and some overfit issue.

    Everything return to right track after a list of amendement from FEB 2018.

    As master Vonaai said what u risk represent what u reward.

    Good luck.

    #74189 quote
    BC
    Participant
    Master

    Sorry, robert.

    #74190 quote
    Vonasi
    Moderator
    Master

    門檻低

    English only in the English speaking forum please. Only joking 🙂

    If ‘master Vonaai’ is meant to be me then you flatter me beyond my worth!

    Now get back on topic….

    #74191 quote
    BC
    Participant
    Master

    Sorry, Vonasi🙏🙏

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

How to buy/sell immediately if certain conditions are met?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
chichihang @chichihang Participant
Summary

This topic contains 9 replies,
has 4 voices, and was last updated by BC
7 years, 8 months ago.

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