code for trading on a specific time

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

    Hi,

    I want to do 1 trade every day at 07.30 am. What is the code for doing that?

    #27647 quote
    ALE
    Moderator
    Master

     

    Hi
    ex:

    a=Average[5](close)
    b=Average[15](close)
    if (time=073000)and (a>b) then
    buy 1 contract at market 
    endif
    set target pprofit 20
    set stop ptrailing 10
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

code for trading on a specific time


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Pjotterd @pjotterd Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by ALE
9 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/07/2017
Status: Active
Attachments: No files
Logo Logo
Loading...