Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

Sec-WebSocket-Key Generator - script for MetaTrader 5

Views:
1953
Rating:
(4)
Published:
2024.01.22 13:45
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Generates
  1. 16-byte value
  2. Randomly selected
  3. Base64-encoded
Sec-WebSocket-Key as per protocal in https://datatracker.ietf.org/doc/html/rfc6455#section-11.3.3
Open Trade Open Trade

This function performs the main logic of opening a trade. Calculates the opening price, take profit levels and stop loss based on symbol information and parameters provided by the user. Prepare a trade request (MqlTradeRequest) with the necessary information, such as symbol, volume, order type, deviation, comment, magic number, etc. Call the OrderSend function to send the operation request and get the result. SetTypeFillingBySymbol function: Determines the order fill type (Fill or Kill, Immediate or Cancel, or Return) based on the symbol's filling policy. GetMinTradeLevel function: Calculates the minimum operating level based on the freeze level and the symbol stops level. Adjusts the minimum level to make sure it is within certain limits and returns the result.

Calculate unrealized profit(s) at a specific time in history Calculate unrealized profit(s) at a specific time in history

This is a script to print all open trades and their PnLs at a specific time in history.

wd.Range_BB wd.Range_BB

Provides Bollinger Bands with calculating the range bandwidth as the difference in pips between the upper and lower Bands. Bollinger Bands appearance and behavior can be tailored by adjusting period, shift, deviation, and applied price, along with color and line style. The 'range/bandwidth information' label can be placed in the specified Sub-Window, allow to customize label positions. Overall, this indicator aids traders in visualizing market flexibility and volatility based on Bollinger Bands width.

Moving Averages-14 different types Moving Averages-14 different types

This is an indicator to calculate 14 types of moving averages based on close price.